import {MdCancel, MdEdit} from "react-icons/md" import React, {ReactElement, useState} from "react" import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Grid, IconButton, Typography, } from "@mui/material" import {MultiStepFormElement, OpenMailButton} from "~/components" import ResendMailButton from "~/route-widgets/root/YouGotMail/ResendMailButton" export interface YouGotMailProps { email: string onGoBack: () => void } export default function YouGotMail({ email, onGoBack, }: YouGotMailProps): ReactElement { const [askToEditEmail, setAskToEditEmail] = useState(false) const domain = email.split("@")[1] return ( <> You got mail! We sent you an email with a link to confirm your email address. Please check your inbox and click on the link to continue. {email} setAskToEditEmail(true)} > Edit email address? Would you like to return to the previous step and edit your email address? ) }