import { Eye, EyeOff, LockIcon } from "lucide-react"; import * as React from "react"; import { cn } from "@/lib/utils"; export interface InputProps extends React.InputHTMLAttributes { icon?: React.ReactNode; inputClassName?: string; } const Input = React.forwardRef( ({ className, inputClassName, icon, type, placeholder, ...props }, ref) => { const [hasValue, setHasValue] = React.useState( Boolean(props.value || props.defaultValue), ); const [showPassword, setShowPassword] = React.useState(false); const handleTogglePassword = () => { setShowPassword(!showPassword); }; const handleChange = (e: React.ChangeEvent) => { setHasValue(e.target.value.length > 0); if (props.onChange) { props.onChange(e); } }; return ( ); }, ); Input.displayName = "Input"; export { Input };