import React, { ReactElement } from 'react'
import { PageProps, graphql } from 'gatsby'
import Page from '../components/templates/Page'
import fishfail from '../images/fishfail.gif'
import { Helmet } from 'react-helmet'
import Button from '../components/atoms/Button'
export default function PageGatsby404(props: PageProps): ReactElement {
const {
title,
description,
actions
} = (props.data as any).content.edges[0].node.childPagesJson
return (
<>
{actions.map((action: { title: string; url: string }) => (
))}
>
)
}
export const contentQuery = graphql`
query Page404Query {
content: allFile(filter: { relativePath: { eq: "pages/404.json" } }) {
edges {
node {
childPagesJson {
title
description
actions {
title
url
}
}
}
}
}
}
`