// ** React Imports import { ChangeEvent, MouseEvent, useState } from 'react' // ** MUI Imports import Card from '@mui/material/Card' import Grid from '@mui/material/Grid' import Button from '@mui/material/Button' import Checkbox from '@mui/material/Checkbox' import { styled } from '@mui/material/styles' import TextField from '@mui/material/TextField' import CardHeader from '@mui/material/CardHeader' import Typography from '@mui/material/Typography' import InputLabel from '@mui/material/InputLabel' import IconButton from '@mui/material/IconButton' import CardContent from '@mui/material/CardContent' import FormControl from '@mui/material/FormControl' import OutlinedInput from '@mui/material/OutlinedInput' import InputAdornment from '@mui/material/InputAdornment' import FormControlLabel from '@mui/material/FormControlLabel' // ** Icons Imports import EyeOutline from 'mdi-material-ui/EyeOutline' import EyeOffOutline from 'mdi-material-ui/EyeOffOutline' interface State { password: string showPassword: boolean } // Styled component for the form const Form = styled('form')(({ theme }) => ({ maxWidth: 400, padding: theme.spacing(12), borderRadius: theme.shape.borderRadius, border: `1px solid ${theme.palette.divider}` })) const FormLayoutsAlignment = () => { // ** State const [values, setValues] = useState({ password: '', showPassword: false }) // Handle Password const handleChange = (prop: keyof State) => (event: ChangeEvent) => { setValues({ ...values, [prop]: event.target.value }) } const handleClickShowPassword = () => { setValues({ ...values, showPassword: !values.showPassword }) } const handleMouseDownPassword = (event: MouseEvent) => { event.preventDefault() } return (
e.preventDefault()}> Sign In Password {values.showPassword ? : } } /> } sx={{ '& .MuiButtonBase-root': { paddingTop: 0, paddingBottom: 0 } }} />
) } export default FormLayoutsAlignment