UNPKG

@keycloakify/keycloak-admin-ui

Version:
25 lines 894 B
import { jsx as _jsx } from "react/jsx-runtime"; import { lazy } from "react"; import { generateEncodedPath } from "../../utils/generateEncodedPath"; const AuthenticationSection = lazy(() => import("../../authentication/AuthenticationSection")); export const AuthenticationRoute = { path: "/:realm/authentication", element: _jsx(AuthenticationSection, {}), breadcrumb: (t) => t("authentication"), handle: { access: ["view-realm", "view-identity-providers", "view-clients"], }, }; export const AuthenticationRouteWithTab = { ...AuthenticationRoute, path: "/:realm/authentication/:tab", }; export const toAuthentication = (params) => { const path = params.tab ? AuthenticationRouteWithTab.path : AuthenticationRoute.path; return { pathname: generateEncodedPath(path, params), }; }; //# sourceMappingURL=Authentication.js.map