import { type FormAction, type FormFieldError } from "keycloakify/login/lib/useUserProfileForm"; import type { KcClsx } from "keycloakify/login/lib/kcClsx"; import type { Attribute } from "keycloakify/login/KcContext"; export type UserProfileFormFieldsProps = { kcContext: Extract; i18n: I18n; kcClsx: KcClsx; onIsFormSubmittableValueChange: (isFormSubmittable: boolean) => void; doMakeUserConfirmPassword: boolean; BeforeField?: (props: BeforeAfterFieldProps) => JSX.Element | null; AfterField?: (props: BeforeAfterFieldProps) => JSX.Element | null; }; type BeforeAfterFieldProps = { attribute: Attribute; dispatchFormAction: React.Dispatch; displayableErrors: FormFieldError[]; valueOrValues: string | string[]; kcClsx: KcClsx; i18n: I18n; };