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