import * as React from "react"; import { EyeIcon, EyeOffIcon } from "lucide-react"; import { useTranslations } from "next-intl"; import { Button, Input } from "../../shadcnui"; import { cn } from "../../utils"; export interface PasswordInputProps extends React.InputHTMLAttributes {} const PasswordInput = React.forwardRef( ({ className, type: _type, ...props }, ref) => { const [showPassword, setShowPassword] = React.useState(false); const disabled = props.value === "" || props.value === undefined || props.disabled; const t = useTranslations(); return (
); }, ); PasswordInput.displayName = "PasswordInput"; export { PasswordInput };