import React from 'react' import Link from 'next/link' import Router from 'next/router' import isEmail from 'validator/lib/isEmail' import {FormController, Input, Button} from '~/components/form' import useAccountRedirect from '../hooks/useAccountRedirect' export default function Register(){ useAccountRedirect() return ( Router.push('/account')}>

Register

isEmail(value)} hint="Enter a valid email address" /> (value.length >= 8)} hint="Password must be at least 8 characters long" /> (value === fields.password.value)} hint="Passwords must match" />

Already have an account? Login here.

) }