import { useRouter } from 'next/router'; import { XIcon } from '@heroicons/react/outline'; import Head from 'next/head'; import Link from 'next/link'; export default function Error() { const router = useRouter(); const { error } = router.query; return (
An error occurred when logging you in. Head back to the login screen and try again.