import { useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; // @mui import { styled } from '@mui/material/styles'; import { Box, Button, Container, Typography } from '@mui/material'; // layouts import LogoOnlyLayout from '../../layouts/LogoOnlyLayout'; // routes import { PATH_AUTH } from '../../routes/paths'; // components import Page from '../../components/Page'; // sections import { ResetPasswordForm } from '../../sections/auth/reset-password'; // assets import { SentIcon } from '../../assets'; // ---------------------------------------------------------------------- const RootStyle = styled('div')(({ theme }) => ({ display: 'flex', minHeight: '100%', alignItems: 'center', justifyContent: 'center', padding: theme.spacing(12, 0), })); // ---------------------------------------------------------------------- export default function ResetPassword() { const [email, setEmail] = useState(''); const [sent, setSent] = useState(false); return ( {!sent ? ( <> Forgot your password? Please enter the email address associated with your account and We will email you a link to reset your password. setSent(true)} onGetEmail={(value) => setEmail(value)} /> ) : ( Request sent successfully We have sent a confirmation email to   {email}
Please check your email.
)}
); }