import { Button as r, ButtonType as s, ButtonStyle as u } from "./accelbyte-widgets107.mjs";
import { Dialog as f, DialogBody as p, DialogFooter as g } from "./accelbyte-widgets235.mjs";
import { UserHelper as d } from "./accelbyte-widgets277.mjs";
import * as e from "react";
import { Trans as t } from "react-i18next";
import n from "./accelbyte-widgets611.mjs";
const C = (l) => {
  const { platformId: i, onCloseDialog: m, toggleDialogConfirmation: c, isLoading: o } = l, a = d.getPlatformName(i);
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(f, { isOpen: !0, className: n.confirmationDialog }, /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement("h1", { className: n.title }, /* @__PURE__ */ e.createElement(t, { i18nKey: "LinkPlatformAccount.modal.confirmation.title" }, "Link to ", { platformName: a }, " Account")), /* @__PURE__ */ e.createElement("p", { className: n.description }, /* @__PURE__ */ e.createElement(t, { i18nKey: "LinkPlatformAccount.modal.confirmation.description" }, "Link to ", { platformName: a }, " Account will allow you to share your ", /* @__PURE__ */ e.createElement("strong", null, "profile, game progression,"), " and", " ", /* @__PURE__ */ e.createElement("strong", null, "earned game content"), " with your current account."))), /* @__PURE__ */ e.createElement(g, { className: "flex justify-end" }, /* @__PURE__ */ e.createElement(
    r,
    {
      className: "btn big btn-ghost footer-btn mr-2 uppercase",
      buttonType: s.TEXT,
      buttonStyle: u.NONE,
      onClick: m,
      disabled: o
    },
    /* @__PURE__ */ e.createElement(t, { i18nKey: "Common.cancel" }, "Cancel")
  ), /* @__PURE__ */ e.createElement(
    r,
    {
      loadingIndicator: "SPINNER",
      className: "btn big btn-primary footer-btn uppercase",
      onClick: c,
      disabled: o,
      isLoading: o
    },
    /* @__PURE__ */ e.createElement(t, { i18nKey: "LinkPlatformAccount.modal.confirmation.continue" }, "Continue")
  ))));
};
export {
  C as LinkPlatformAccountConfirmationDialog
};
