import React, {useEffect} 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' export default function Login({user}){ useEffect(()=>{ if(user) Router.push('/account') }, [user]) return ( Router.push('/account')}>

Login

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

Need an account? Register here.

) }