2021-12-23 22:07:20 +00:00
|
|
|
import ContentPanel from "components/Panels/ContentPanel";
|
2022-02-12 10:02:22 +00:00
|
|
|
import { GetStaticProps } from "next";
|
2022-02-15 14:50:51 +00:00
|
|
|
import AppLayout from "components/AppLayout";
|
2022-03-06 03:13:18 +00:00
|
|
|
import ReturnButton, {
|
|
|
|
ReturnButtonType,
|
|
|
|
} from "components/PanelComponents/ReturnButton";
|
2022-03-07 14:50:00 +00:00
|
|
|
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
|
2021-12-23 22:07:20 +00:00
|
|
|
|
2022-03-07 14:50:00 +00:00
|
|
|
interface FourOhFourProps extends AppStaticProps {}
|
2022-02-12 10:02:22 +00:00
|
|
|
|
2022-02-15 14:50:51 +00:00
|
|
|
export default function FourOhFour(props: FourOhFourProps): JSX.Element {
|
2022-03-07 14:50:00 +00:00
|
|
|
const { langui } = props;
|
2022-02-15 14:50:51 +00:00
|
|
|
const contentPanel = (
|
|
|
|
<ContentPanel>
|
2022-03-05 14:36:43 +00:00
|
|
|
<h1>404 - {langui.page_not_found}</h1>
|
2022-03-06 03:13:18 +00:00
|
|
|
<ReturnButton
|
|
|
|
href="/"
|
|
|
|
title="Home"
|
|
|
|
langui={langui}
|
|
|
|
displayOn={ReturnButtonType.Both}
|
|
|
|
/>
|
2022-02-15 14:50:51 +00:00
|
|
|
</ContentPanel>
|
2021-12-23 22:07:20 +00:00
|
|
|
);
|
2022-03-07 14:50:00 +00:00
|
|
|
return <AppLayout navTitle="404" contentPanel={contentPanel} {...props} />;
|
2021-12-23 22:07:20 +00:00
|
|
|
}
|
2022-02-12 10:02:22 +00:00
|
|
|
|
|
|
|
export const getStaticProps: GetStaticProps = async (context) => {
|
2022-03-07 14:50:00 +00:00
|
|
|
const props: FourOhFourProps = {
|
|
|
|
...(await getAppStaticProps(context)),
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
props: props,
|
|
|
|
};
|
2022-02-12 10:02:22 +00:00
|
|
|
};
|