import { useState } from "react"; import { clsx } from "keycloakify/tools/clsx"; import type { PageProps } from "keycloakify/login/pages/PageProps"; import { useGetClassName } from "keycloakify/login/lib/useGetClassName"; import type { LazyOrNot } from "keycloakify/tools/LazyOrNot"; import type { UserProfileFormFieldsProps } from "keycloakify/login/UserProfileFormFields"; import type { KcContext } from "../kcContext"; import type { I18n } from "../i18n"; type IdpReviewUserProfileProps = PageProps, I18n> & { UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>; }; export default function IdpReviewUserProfile(props: IdpReviewUserProfileProps) { const { kcContext, i18n, doUseDefaultCss, Template, classes, UserProfileFormFields } = props; const { getClassName } = useGetClassName({ doUseDefaultCss, classes }); const { msg, msgStr } = i18n; const { url, messagesPerField } = kcContext; const [isFomSubmittable, setIsFomSubmittable] = useState(false); return ( ); }