// components import Popup from '@components/Popup'; import {toast} from 'react-toastify'; // hooks import {useForm} from 'react-hook-form'; // utils import classNames from 'classnames'; import PropTypes from 'prop-types'; const ResetPasswordPopup = ({open, onClose}) => { const {register, handleSubmit, formState: {errors}, reset} = useForm(); const handleClose = () => { reset(); onClose(); } const onSubmit = data => { toast.info(`New password was sent to ${data.email}`,{toastId:"onSubmit"}); handleClose(); } return (

Reset Password

Enter your email address below and we'll send you a link to reset your password.

If you don't receive an email within a few minutes, please check your spam folder.

) } ResetPasswordPopup.propTypes = { open: PropTypes.bool.isRequired, onClose: PropTypes.func.isRequired } export default ResetPasswordPopup