'use client'; import { useState } from 'react'; import { Icon } from '@iconify/react'; import TextInput, { TextInputProps } from '@/components/input/TextInput'; import Button from '@/components/Button'; type PasswordInputProps = Omit< TextInputProps, 'type' | 'startAdornment' | 'endAdornment' >; const PasswordInput = (props: PasswordInputProps) => { const [type, setType] = useState('password'); const showPasswordHandler = () => { setType((prevType) => { if (prevType === 'password') return 'text'; return 'password'; }); }; return ( } /> ); }; export default PasswordInput;