UNPKG

@keycloakify/keycloak-admin-ui

Version:
17 lines (16 loc) 787 B
import type { UserProfileConfig } from "@keycloak/keycloak-admin-client/lib/defs/userProfileMetadata"; import { PropsWithChildren } from "react"; type UserProfileProps = { config: UserProfileConfig | null; save: SaveCallback; isSaving: boolean; }; export type SaveCallback = (updatedConfig: UserProfileConfig, options?: SaveOptions) => Promise<boolean>; export type SaveOptions = { successMessageKey?: string; errorMessageKey?: string; }; export declare const UserProfileContext: import("../../ui-shared/utils/createNamedContext").NamedContext<UserProfileProps | undefined>; export declare const UserProfileProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element; export declare const useUserProfile: () => UserProfileProps; export {};