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