import { Ctx as e } from "./accelbyte-widgets33.mjs";
import { GameHelper as p } from "./accelbyte-widgets205.mjs";
import { LauncherHelper as n } from "./accelbyte-widgets424.mjs";
import a from "react";
import { Trans as i } from "react-i18next";
import "./accelbyte-widgets438.mjs";
const l = (r) => {
  const o = async () => {
    const { item: t } = r;
    t.appId && (await p.loadGameInfo(), e.getGameState().setActiveGame(t.appId), e.getAppState().state.appHistory.push(n.getAppPage(t.appId)));
  };
  return /* @__PURE__ */ a.createElement("button", { className: "btn big btn-primary btnGoToLibrary", onClick: () => o() }, /* @__PURE__ */ a.createElement(i, { i18nKey: "CatalogPurchaseWidget.button.goToLibrary" }, "GO TO LIBRARY"));
};
export {
  l as OpenLibraryLauncherButton
};
