"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 EditIdentity = require("../member/EditIdentity.cjs");
const NavigateBackButton = require("../../../routing/NavigateBackButton.cjs");
const EditUserPage = react.memo(
  ({ rolesConfig, identityId, userListLink = "tenantUsers" }) => {
    const project = reactClient.useProjectSlug();
    if (!project) {
      return /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children: "Not in project." }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/EditUserPage.tsx",
        lineNumber: 20,
        columnNumber: 11
      }, void 0);
    }
    return /* @__PURE__ */ jsxDevRuntime.jsxDEV(
      ui.LayoutPage,
      {
        title: /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.Heading, { depth: 1, children: "Edit user" }, void 0, false, {
          fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/EditUserPage.tsx",
          lineNumber: 24,
          columnNumber: 12
        }, 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/EditUserPage.tsx",
          lineNumber: 25,
          columnNumber: 17
        }, void 0),
        children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(EditIdentity.EditIdentity, { project, rolesConfig, identityId, userListLink }, void 0, false, {
          fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/EditUserPage.tsx",
          lineNumber: 27,
          columnNumber: 5
        }, void 0)
      },
      void 0,
      false,
      {
        fileName: "/__w/interface/interface/packages/admin/src/tenant/components/pages/EditUserPage.tsx",
        lineNumber: 23,
        columnNumber: 4
      },
      void 0
    );
  }
);
const EditUserInProject = EditUserPage;
exports.EditUserInProject = EditUserInProject;
exports.EditUserPage = EditUserPage;
//# sourceMappingURL=EditUserPage.cjs.map
