import type { JSX } from "@keycloakify/keycloak-login-ui/tools/JSX"; import { useIsPasswordRevealed } from "@keycloakify/keycloak-login-ui/tools/useIsPasswordRevealed"; import { useKcClsx } from "@keycloakify/keycloak-login-ui/useKcClsx"; import { useI18n } from "../i18n"; export function PasswordWrapper(props: { passwordInputId: string; children: JSX.Element }) { const { passwordInputId, children } = props; const { msgStr } = useI18n(); const { kcClsx } = useKcClsx(); const { isPasswordRevealed, toggleIsPasswordRevealed } = useIsPasswordRevealed({ passwordInputId }); return (
{children}
); }