'use client'; import { cn } from '@/lib/utils'; import { useState } from 'react'; import ShowIcon from '@icons/show-icon.svg'; import HideIcon from '@icons/hide-icon.svg'; export function Input({ className, isPassword, ...props }: any) { const [show, setShow] = useState(false); return (
{isPassword && ( setShow(!show)} className="absolute right-0 top-1/2 -translate-y-1/2 cursor-pointer" > {show ? : } )}
); }