"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const reactClient = require("@contember/react-client");
const ui = require("@contember/ui");
const react = require("react");
const errors = require("./errors.cjs");
const NavigateBackButton = require("../../../routing/NavigateBackButton.cjs");
const InviteUser = require("../person/InviteUser.cjs");
const InviteUserPage = react.memo(({ rolesConfig, userListLink = "tenantUsers", method }) => {
  const project = reactClient.useProjectSlug();
  if (!project) {
    throw errors.createNotInProjectError();
  }
  return /* @__PURE__ */ jsxDevRuntime.jsxDEV(
    ui.LayoutPage,
    {
      title: /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.Heading, { depth: 1, children: "Invite user" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/InviteUserPage.tsx",
        lineNumber: 26,
        columnNumber: 11
      }, void 0),
      navigation: /* @__PURE__ */ jsxDevRuntime.jsxDEV(NavigateBackButton.NavigateBackButton, { to: userListLink, children: "Back to list of users" }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/InviteUserPage.tsx",
        lineNumber: 27,
        columnNumber: 16
      }, void 0),
      children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(InviteUser.InviteUser, { project, rolesConfig, userListLink, method }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/InviteUserPage.tsx",
        lineNumber: 29,
        columnNumber: 4
      }, void 0)
    },
    void 0,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/InviteUserPage.tsx",
      lineNumber: 25,
      columnNumber: 3
    },
    void 0
  );
});
const InviteUserToProject = InviteUserPage;
exports.InviteUserPage = InviteUserPage;
exports.InviteUserToProject = InviteUserToProject;
//# sourceMappingURL=InviteUserPage.cjs.map
