import { Button as i } from "./accelbyte-widgets107.mjs";
import { Dialog as s, DialogBody as r, DialogFooter as n } from "./accelbyte-widgets235.mjs";
import { Ctx as a } from "./accelbyte-widgets33.mjs";
import l from "classnames";
import e from "react";
import { Trans as o } from "react-i18next";
import p from "./accelbyte-widgets236.mjs";
class f extends e.Component {
  constructor(t) {
    super(t), this.appState = a.getAppState();
  }
  render() {
    const { isSessionExpired: t } = this.appState.state;
    return /* @__PURE__ */ e.createElement(s, { title: /* @__PURE__ */ e.createElement(o, { i18nKey: "SessionExpiredDialog.title" }, "Session expired"), isOpen: t }, /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(o, { i18nKey: "SessionExpiredDialog.bodyText" }, "Your session has expired. Please log in again.")), /* @__PURE__ */ e.createElement(n, null, /* @__PURE__ */ e.createElement(
      i,
      {
        className: l("btn btn-ghost", p.btnClose),
        onClick: () => {
          this.appState.logout();
        }
      },
      /* @__PURE__ */ e.createElement(o, { i18nKey: "SessionExpiredDialog.buttonAction" }, "Close")
    )));
  }
}
export {
  f as SessionExpiredDialog
};
