1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/src/pages/404.tsx

37 lines
920 B
TypeScript
Raw Normal View History

2020-11-19 21:55:16 +01:00
import React, { ReactElement } from 'react'
2021-10-13 18:48:59 +02:00
import Page from '@shared/Page'
import fishfail from '@images/fishfail.gif'
import Head from 'next/head'
2021-10-13 18:48:59 +02:00
import Button from '@shared/atoms/Button'
import content from '../../content/pages/404.json'
import { useRouter } from 'next/router'
2020-11-19 21:55:16 +01:00
export default function Page404(): ReactElement {
const router = useRouter()
const { title, description, actions } = content
2020-11-19 21:55:16 +01:00
return (
<>
<Head>
2020-11-19 21:55:16 +01:00
<style type="text/css">{`
main {
text-align: center;
}
`}</style>
</Head>
2020-11-19 21:55:16 +01:00
<Page
title={title}
description={description}
uri={router.route}
2020-11-19 21:55:16 +01:00
headerCenter
>
{actions.map((action: { title: string; url: string }) => (
<Button style="primary" key={action.title} to={action.url}>
{action.title}
</Button>
))}
</Page>
</>
)
}