import { ArrowBackOutlined } from '@mui/icons-material'; import { Box, Card, Grid, Typography } from '@mui/material'; import { useNavigate } from 'react-router-dom'; import ForgotPasswordForm from './ForgotPasswordForm'; import { useStyles } from './forgotPasswordStyles'; import { useState } from 'react'; function ForgotPassword() { const navigate = useNavigate(); const classes = useStyles(); const [resetPasswordLinkSend, setResetPasswordLinkSend] = useState(false); const [email, setEmail] = useState(''); const handleFormSubmit = () => { setResetPasswordLinkSend(true); }; const handleGoBackClick = () => { navigate('/auth/login'); }; return ( {!resetPasswordLinkSend ? ( Reset your Password ) : ( {/* */} Email Sent {/* {` An email with instructions on how to reset your password has been sent to ${email}. It is valid for next 24 hrs. Check your spam or junk folder if you don’t see the email in your inbox.`} */} {`An email with instructions on how to reset your password has been sent to `} {email} {`. It is valid for the next 24 hrs. Check your spam or junk folder if you don’t see the email in your inbox.`} {/* */} )} ); } export default ForgotPassword;