/* eslint-disable */ // @ts-nocheck import { lazy } from "react"; import type { Path } from "react-router-dom"; import { generateEncodedPath } from "../../utils/generateEncodedPath"; import type { AppRouteObject } from "../../routes"; export type UserTab = | "settings" | "groups" | "organizations" | "consents" | "attributes" | "sessions" | "credentials" | "role-mapping" | "identity-provider-links" | "events" | "workflows" | "verifiable-credentials"; export type UserParams = { realm: string; id: string; tab: UserTab; }; const EditUser = lazy(() => import("../EditUser")); export const UserRoute: AppRouteObject = { path: "/:realm/users/:id/:tab", element: , handle: { access: "query-users", breadcrumb: (t) => t("userDetails"), }, }; export const toUser = (params: UserParams): Partial => ({ pathname: generateEncodedPath(UserRoute.path, params), });