-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.tsx
36 lines (34 loc) · 913 Bytes
/
404.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { ReactElement } from 'react'
import Page from '@shared/Page'
import fishfail from '@images/fishfail.gif'
import Head from 'next/head'
import Button from '@shared/atoms/Button'
import content from '../../content/pages/404.json'
import { useRouter } from 'next/router'
export default function Page404(): ReactElement {
const router = useRouter()
const { title, description, actions } = content
return (
<>
<Head>
<style type="text/css">{`
main {
text-align: center;
}
`}</style>
</Head>
<Page
title={title}
description={description}
uri={router.route}
headerCenter
>
{actions.map((action: { title: string; url: string }) => (
<Button style="primary" key={action.title} to={action.url}>
{action.title}
</Button>
))}
</Page>
</>
)
}