import Image from 'react-bootstrap/Image'
import { StaticLayout } from '@/components/layout'
import styles from '@/styles/error.module.css'
import LightningIcon from '@/svgs/bolt.svg'
import { useRouter } from 'next/router'
import Button from 'react-bootstrap/Button'
export function getServerSideProps ({ query }) {
return {
props: {
error: query.error
}
}
}
export default function AuthError ({ error }) {
const router = useRouter()
if (error === 'AccessDenied') {
return (
ACCESS DENIED
)
} else if (error === 'Verification') {
return (
This magic link has expired.
Get another by logging in.
)
} else if (error === 'Configuration') {
return (
configuration error
)
}
return (
auth error
)
}