import { useState } from 'react'; import { Icon } from '@/app/Icon'; interface PasswordInputProps { value: string; onChange: (value: string) => void; placeholder: string; autoComplete?: string; error?: string; maxLength?: number; } export function PasswordInput({ value, onChange, placeholder, autoComplete, error, maxLength }: PasswordInputProps) { const [visible, setVisible] = useState(false); return (
onChange(e.target.value)} placeholder={placeholder} autoComplete={autoComplete} maxLength={maxLength} className="w-full bg-transparent text-[15px] outline-none" />
{error ?
{error}
: null}
); }