import * as React from "react"; import { cn } from "@app/lib/cn"; import { EyeOff, Eye } from "lucide-react"; export type InputProps = React.InputHTMLAttributes; const Input = React.forwardRef( ({ className, type, ...props }, ref) => { const [showPassword, setShowPassword] = React.useState(false); const togglePasswordVisibility = () => setShowPassword(!showPassword); return type === "password" ? (
{showPassword ? ( ) : ( )}
) : ( ); } ); Input.displayName = "Input"; export { Input };