import React, { useState, memo } from "react"; import Template from "./Template"; import type { KcProps } from "./KcProps"; import type { KcContextBase } from "../getKcContext/KcContextBase"; import { useCssAndCx } from "../tools/useCssAndCx"; import type { I18n } from "../i18n"; import { UserProfileFormFields } from "./shared/UserProfileCommons"; const IdpReviewUserProfile = memo( ({ kcContext, i18n, doFetchDefaultThemeResources = true, ...props }: { kcContext: KcContextBase.IdpReviewUserProfile; i18n: I18n; doFetchDefaultThemeResources?: boolean } & KcProps) => { const { cx } = useCssAndCx(); const { msg, msgStr } = i18n; const { url } = kcContext; const [isFomSubmittable, setIsFomSubmittable] = useState(false); return (