import { useState } from 'react'; import styles from './MaskedInput.module.scss'; type Props = { name: string readOnly: boolean defaultValue: string onChange?: (e: any) => void tabIndex?: number | undefined }; export default function MaskedInput(props: Props): JSX.Element { const [passwordShown, setPasswordShown] = useState(false); const togglePassword = () => { setPasswordShown(!passwordShown); }; const { name, readOnly, defaultValue, onChange, tabIndex, } = props; return (