import { O as l } from "./FetchConfigsUtils-476a602b.mjs";
import { o as s } from "./MockVars-8f827f39.mjs";
import c from "classnames";
import * as i from "react";
import { u as m } from "./useAppConfigs-0fb5df89.mjs";
const L = (e) => {
  const {
    state: { playerPortalConfigData: o }
  } = m(), { children: n, className: t } = e, a = location.pathname.includes("/player-portal") ? s : o == null ? void 0 : o.launcherDownloadLink.data.value;
  return /* @__PURE__ */ i.createElement(
    "a",
    {
      className: c(
        t,
        "btn small btn-primary",
        "launcherDownloadButton",
        !a && "disabled",
        l.TITLE_FONT
      ),
      title: a || "Not available",
      target: "_blank",
      rel: "noreferrer",
      href: a || "",
      onClick: (r) => {
        a || r.preventDefault();
      }
    },
    n
  );
};
export {
  L
};
