import { Button as a, ButtonType as i, ButtonStyle as m } from "./accelbyte-widgets107.mjs";
import { Dialog as s, DialogBody as u, DialogFooter as g } from "./accelbyte-widgets235.mjs";
import e from "react";
import { Trans as t } from "react-i18next";
const E = (r) => {
  const { onConfirm: l, onCancel: c, platformName: o, isSubmitting: n } = r;
  return /* @__PURE__ */ e.createElement(
    s,
    {
      title: /* @__PURE__ */ e.createElement(t, { i18nKey: "linkPlatformAccountPage.confirmation.title" }, "Link to ", { platformName: o }, " Account"),
      className: "w-400 text-center",
      isOpen: !0
    },
    /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement("p", { className: "text-left text-[color:rgb(var(--od-rgb-text),0.65)]" }, /* @__PURE__ */ e.createElement(t, { i18nKey: "linkPlatformAccountPage.confirmation.subTitle" }, "Link to ", { platformName: o }, " Account will allow you to share your", " ", /* @__PURE__ */ e.createElement("span", { className: "font-medium text-[color:rgb(var(--od-rgba-text))]" }, "profile, game progression,"), " and", " ", /* @__PURE__ */ e.createElement("span", { className: "font-medium text-[color:rgb(var(--od-rgba-text))]" }, "earned game content"), " with your account."))),
    /* @__PURE__ */ e.createElement(g, null, /* @__PURE__ */ e.createElement("div", { className: "flex justify-end" }, /* @__PURE__ */ e.createElement(
      a,
      {
        className: "btn big btn-ghost mr-2 uppercase",
        buttonType: i.TEXT,
        buttonStyle: m.NONE,
        onClick: c,
        disabled: n
      },
      /* @__PURE__ */ e.createElement(t, { i18nKey: "common.cancel" }, "Cancel")
    ), /* @__PURE__ */ e.createElement(
      a,
      {
        loadingIndicator: "SPINNER",
        className: "btn big btn-primary uppercase",
        onClick: l,
        disabled: n,
        isLoading: n
      },
      /* @__PURE__ */ e.createElement(t, { i18nKey: "linkPlatformAccountPage.confirmation.continue" }, "Continue")
    )))
  );
};
export {
  E as ConfirmationLinkAccountDialog
};
