import React, {useState} from 'react' import Link from 'next/link' import Router from 'next/router' import Head from 'next/head' import isEmail from 'validator/lib/isEmail' import {FormController, Input, Button} from '~/components/form' import useAccountRedirect from '~/hooks/useAccountRedirect' export default function ResetPassword(){ useAccountRedirect() const [submitted, setSubmitted] = useState(false) return ( <> Reset Password | Society of Socks {submitted ? (

Reset Password

An email has been sent to the provided email address - check your email for further instructions in resetting your password.

) : ( setSubmitted(true)}>

Reset Password

isEmail(value)} hint="Enter a valid email address" />
) } ) }