/* 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 KeySubTab = "list" | "providers"; export type KeysParams = { realm: string; tab: KeySubTab; }; const RealmSettingsSection = lazy(() => import("../RealmSettingsSection")); export const KeysRoute: AppRouteObject = { path: "/:realm/realm-settings/keys/:tab", element: , handle: { access: "view-realm", breadcrumb: (t) => t("keys"), }, }; export const toKeysTab = (params: KeysParams): Partial => ({ pathname: generateEncodedPath(KeysRoute.path, params), });