import { InputPasswordProps } from '@lib/plume-admin-theme/form/FormInputProps'; import useToggle from '@lib/react-hook-toggle/ReactHookToggle'; import { Icon, IconButton, InputAdornment } from '@mui/material'; import InputText from './InputText'; function InputPassword( { label, name, rules, autoComplete, errorMessageMapping, InputProps, }: Readonly, ) { const [showPassword, toggleShowPassword] = useToggle(false); return ( { showPassword ? visibility_off : visibility } ), } } /> ); } export default InputPassword;