UNPKG

@keycloakify/keycloak-admin-ui

Version:
16 lines 569 B
import { jsx as _jsx } from "react/jsx-runtime"; import { lazy } from "react"; import { generateEncodedPath } from "../../utils/generateEncodedPath"; const CreateRealmRole = lazy(() => import("../../realm-roles/CreateRealmRole")); export const AddRoleRoute = { path: "/:realm/roles/new", element: _jsx(CreateRealmRole, {}), breadcrumb: (t) => t("createRole"), handle: { access: "manage-realm", }, }; export const toAddRole = (params) => ({ pathname: generateEncodedPath(AddRoleRoute.path, params), }); //# sourceMappingURL=AddRole.js.map