import { AppleIcon as c } from "./accelbyte-widgets469.mjs";
import { DefaultIcon as a } from "./accelbyte-widgets470.mjs";
import { DiscordIcon as u } from "./accelbyte-widgets471.mjs";
import { EAOriginIcon as l } from "./accelbyte-widgets472.mjs";
import { EpicgamesIcon as i } from "./accelbyte-widgets473.mjs";
import { FacebookIcon as s } from "./accelbyte-widgets474.mjs";
import { GoogleIcon as p } from "./accelbyte-widgets475.mjs";
import { LiveIcon as I } from "./accelbyte-widgets476.mjs";
import { MicrosoftIcon as f } from "./accelbyte-widgets477.mjs";
import { NetflixIcon as d } from "./accelbyte-widgets478.mjs";
import { OculusIcon as E } from "./accelbyte-widgets479.mjs";
import { PSNIcon as g } from "./accelbyte-widgets480.mjs";
import { StadiaIcon as b } from "./accelbyte-widgets481.mjs";
import { SteamIcon as w } from "./accelbyte-widgets482.mjs";
import { TwitchIcon as P } from "./accelbyte-widgets483.mjs";
import r from "react";
import { LinkedPlatformId as e } from "./accelbyte-widgets239.mjs";
import { UserHelper as h } from "./accelbyte-widgets277.mjs";
const n = (t) => {
  const { Icon: m, platformId: o } = t;
  return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("span", { className: "mr-2" }, /* @__PURE__ */ r.createElement(m, null)), h.getPlatformName(o));
};
function U(t) {
  switch (t) {
    case e.enum.azuresaml:
      return /* @__PURE__ */ r.createElement(n, { Icon: f, platformId: t });
    case e.enum.steam:
    case e.enum.steamopenid:
      return /* @__PURE__ */ r.createElement(n, { Icon: w, platformId: e.enum.steamopenid });
    case e.enum.epicgames:
      return /* @__PURE__ */ r.createElement(n, { Icon: i, platformId: e.enum.epicgames });
    case e.enum.facebook:
      return /* @__PURE__ */ r.createElement(n, { Icon: s, platformId: e.enum.facebook });
    case e.enum.google:
      return /* @__PURE__ */ r.createElement(n, { Icon: p, platformId: e.enum.google });
    case e.enum.oculus:
    case e.enum.oculusweb:
      return /* @__PURE__ */ r.createElement(n, { Icon: E, platformId: e.enum.oculus });
    case e.enum.twitch:
      return /* @__PURE__ */ r.createElement(n, { Icon: P, platformId: e.enum.twitch });
    case e.enum.ps4:
    case e.enum.ps4web:
    case e.enum.ps5:
      return /* @__PURE__ */ r.createElement(n, { Icon: g, platformId: e.enum.ps4 });
    case e.enum.live:
    case e.enum.xblweb:
      return /* @__PURE__ */ r.createElement(n, { Icon: I, platformId: e.enum.live });
    case e.enum.stadia:
    case e.enum.stadiaweb:
      return /* @__PURE__ */ r.createElement(n, { Icon: b, platformId: e.enum.stadia });
    case e.enum.apple:
      return /* @__PURE__ */ r.createElement(n, { Icon: c, platformId: e.enum.apple });
    case e.enum.netflix:
      return /* @__PURE__ */ r.createElement(n, { Icon: d, platformId: e.enum.netflix });
    case e.enum.eaorigin:
      return /* @__PURE__ */ r.createElement(n, { Icon: l, platformId: e.enum.eaorigin });
    case e.enum.discord:
      return /* @__PURE__ */ r.createElement(n, { Icon: u, platformId: e.enum.discord });
    default:
      return /* @__PURE__ */ r.createElement(n, { Icon: a, platformId: t });
  }
}
export {
  U as getThirdPartyPlatformIcon
};
