import * as React from "react"; import { Eye, EyeOff } from "lucide-react"; import { cn } from "@/lib/utils"; import { useT } from "@/i18n"; /** * A password field with its own show/hide button. The browser's built-in one only exists while the field is focused and * comes back only after the field is emptied, so people could not look at a password they had already typed. */ export const PasswordInput = React.forwardRef, "type">>( ({ className, ...props }, ref) => { const t = useT(); const [shown, setShown] = React.useState(false); return (
); }, ); PasswordInput.displayName = "PasswordInput";