import * as React from "react"; import { cn } from "@/lib/utils"; 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); console.log("type", type); return (
{type === "password" && (
{showPassword ? ( ) : ( )}
)}
); } ); Input.displayName = "Input"; export { Input };