"use client"; import * as React from "react"; import { EyeIcon, EyeOffIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import type { InputHTMLAttributes } from "react"; type InputProps = InputHTMLAttributes; import { cn } from "@/lib/utils"; const PasswordInput = React.forwardRef(({ className, ...props }, ref) => { const [showPassword, setShowPassword] = React.useState(false); const disabled = props.value === "" || props.value === undefined || props.disabled; return (
); }); PasswordInput.displayName = "PasswordInput"; export { PasswordInput };