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