"use client";
import { j as o } from "../../../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { Popover as e } from "@mantine/core";
import { useDisclosure as d } from "@mantine/hooks";
import "react";
import { ReactComponent as c } from "../../../../assets/images/EpicStoreLogo.svg.mjs";
import { ReactComponent as m } from "../../../../assets/images/GogStoreLogo.svg.mjs";
import { ReactComponent as x } from "../../../../assets/images/HyperPlayStoreLogo.svg.mjs";
import s from "../../GameCard.module.scss.mjs";
const w = ({ store: p, state: i, i18n: t }) => {
  const [n, { open: r, close: l }] = d(!1), a = i === "INSTALLED";
  switch (p) {
    case "hyperplay":
      return /* @__PURE__ */ o.jsxs(
        e,
        {
          position: "top",
          shadow: "md",
          opened: n,
          offset: { mainAxis: 0 },
          classNames: { dropdown: s.popover },
          unstyled: !0,
          children: [
            /* @__PURE__ */ o.jsx(e.Target, { children: /* @__PURE__ */ o.jsx(
              "button",
              {
                onMouseEnter: r,
                onMouseLeave: l,
                className: s.targetButton,
                children: /* @__PURE__ */ o.jsx(x, {})
              }
            ) }),
            /* @__PURE__ */ o.jsx(e.Dropdown, { children: /* @__PURE__ */ o.jsx("div", { className: "caption-sm", children: a ? t.logoTextTooltip.hyperplay.installed : t.logoTextTooltip.hyperplay.notInstalled }) })
          ]
        }
      );
    case "gog":
      return /* @__PURE__ */ o.jsxs(
        e,
        {
          position: "top",
          shadow: "md",
          opened: n,
          offset: { mainAxis: 0 },
          classNames: { dropdown: s.popover },
          unstyled: !0,
          children: [
            /* @__PURE__ */ o.jsx(e.Target, { children: /* @__PURE__ */ o.jsx(
              "button",
              {
                onMouseEnter: r,
                onMouseLeave: l,
                className: s.targetButton,
                children: /* @__PURE__ */ o.jsx(m, {})
              }
            ) }),
            /* @__PURE__ */ o.jsx(e.Dropdown, { children: /* @__PURE__ */ o.jsx("div", { className: "caption-sm", children: a ? t.logoTextTooltip.gog.installed : t.logoTextTooltip.gog.notInstalled }) })
          ]
        }
      );
    case "legendary":
      return /* @__PURE__ */ o.jsxs(
        e,
        {
          position: "top",
          shadow: "md",
          opened: n,
          offset: { mainAxis: 0 },
          classNames: { dropdown: s.popover },
          unstyled: !0,
          children: [
            /* @__PURE__ */ o.jsx(e.Target, { children: /* @__PURE__ */ o.jsx(
              "button",
              {
                onMouseEnter: r,
                onMouseLeave: l,
                className: s.targetButton,
                children: /* @__PURE__ */ o.jsx(c, { className: s.epicStoreLogo })
              }
            ) }),
            /* @__PURE__ */ o.jsxs(e.Dropdown, { children: [
              /* @__PURE__ */ o.jsx("div", { className: "caption-sm", children: a ? t.logoTextTooltip.epic.installed : t.logoTextTooltip.epic.notInstalled }),
              " "
            ] })
          ]
        }
      );
    default:
      return null;
  }
};
export {
  w as default
};
//# sourceMappingURL=index.mjs.map
