"use client" import { EyeIcon, EyeOffIcon } from "lucide-react" import { type ComponentProps, useState } from "react" import { cn } from "../lib/utils" import { Button } from "./ui/button" import { Input } from "./ui/input" export function PasswordInput({ className, enableToggle, onChange, ...props }: ComponentProps & { enableToggle?: boolean }) { const [disabled, setDisabled] = useState(true) const [isVisible, setIsVisible] = useState(false) return (
{ setDisabled(!event.target.value) onChange?.(event) }} /> {enableToggle && ( <> )}
) }