import { useState } from "react"; import type { LazyOrNot } from "keycloakify/tools/LazyOrNot"; import { getKcClsx } from "keycloakify/login/lib/kcClsx"; import type { PageProps } from "keycloakify/login/pages/PageProps"; 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>; doMakeUserConfirmPassword: boolean; }; export default function IdpReviewUserProfile(props: IdpReviewUserProfileProps) { const { kcContext, i18n, doUseDefaultCss, Template, classes, UserProfileFormFields, doMakeUserConfirmPassword } = props; const { kcClsx } = getKcClsx({ doUseDefaultCss, classes }); const { msg, msgStr } = i18n; const { url, messagesPerField } = kcContext; const [isFomSubmittable, setIsFomSubmittable] = useState(false); return ( ); }