diff --git a/components/password/reset-password.js b/components/password/reset-password.js new file mode 100644 index 0000000..e149602 --- /dev/null +++ b/components/password/reset-password.js @@ -0,0 +1,75 @@ +import {useState, forwardRef} from 'react' +import Button from '@mui/material/Button' +import Typography from '@mui/material/Typography' +import Box from '@mui/material/Box' +import Snackbar from '@mui/material/Snackbar' +import {LinearProgress} from '@mui/material' +import MuiAlert from '@mui/material/Alert' +import ResetDialog from './reset-dialog' + +const Alert = forwardRef(function Alert(props, ref) { + return +}) + +export default function ResetPassword() { + const [open, setOpen] = useState(false) + const [error, setError] = useState(false) + const [loading, setLoading] = useState(false) + const [success, setSuccess] = useState(false) + + const handleClose = (event, reason) => { + if (reason === 'clickaway') { + return + } + + setError('') + setSuccess(false) + } + + return ( + <> + + + + {loading && } + {error && ( + + {error} + + )} + {success && ( + + Email envoyé avec succès. Vous pouvez changer votre mot de passe via le lien qui vous a été envoyé. + + )} + + + ) +}