import { GetStaticProps } from "next"; import { AppLayout, AppLayoutRequired } from "components/AppLayout"; import { ReturnButton } from "components/PanelComponents/ReturnButton"; import { ContentPanel } from "components/Containers/ContentPanel"; import { getOpenGraph } from "helpers/openGraph"; import { getLangui } from "graphql/fetchLocalData"; import { Img } from "components/Img"; import { useLocalData } from "contexts/LocalDataContext"; /* * ╭────────╮ * ──────────────────────────────────────────╯ PAGE ╰───────────────────────────────────────────── */ interface Props extends AppLayoutRequired {} const FiveHundred = ({ openGraph, ...otherProps }: Props): JSX.Element => { const { langui } = useLocalData(); return (

{langui.page_not_found}

} openGraph={openGraph} {...otherProps} /> ); }; export default FiveHundred; /* * ╭──────────────────────╮ * ───────────────────────────────────╯ NEXT DATA FETCHING ╰────────────────────────────────────── */ export const getStaticProps: GetStaticProps = (context) => { const langui = getLangui(context.locale); const props: Props = { openGraph: getOpenGraph(langui, "500 - Internal Server Error"), }; return { props: props, }; };