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