import React, { useState, memo } from "react"; import DefaultTemplate from "./Template"; import type { TemplateProps } from "./Template"; import type { KcProps } from "./KcProps"; import type { KcContextBase } from "../getKcContext/KcContextBase"; import { clsx } from "../tools/clsx"; import type { I18n } from "../i18n"; import { UserProfileFormFields } from "./shared/UserProfileCommons"; export type IdpReviewUserProfileProps = KcProps & { kcContext: KcContextBase.IdpReviewUserProfile; i18n: I18n; doFetchDefaultThemeResources?: boolean; Template?: (props: TemplateProps) => JSX.Element | null; }; const IdpReviewUserProfile = memo((props: IdpReviewUserProfileProps) => { const { kcContext, i18n, doFetchDefaultThemeResources = true, Template = DefaultTemplate, ...kcProps } = props; const { msg, msgStr } = i18n; const { url } = kcContext; const [isFomSubmittable, setIsFomSubmittable] = useState(false); return (