2020-07-17 10:03:38 +02:00
|
|
|
import React from 'react';
|
2020-08-07 11:27:12 +02:00
|
|
|
import Layout from 'components/layout/Layout';
|
2020-09-11 08:55:29 +02:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2020-07-17 10:03:38 +02:00
|
|
|
|
2022-10-27 21:14:34 +02:00
|
|
|
export default function Custom404({ pageDisabled }) {
|
|
|
|
if (pageDisabled) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-07-17 10:03:38 +02:00
|
|
|
return (
|
2020-07-24 04:56:55 +02:00
|
|
|
<Layout>
|
2020-08-15 10:17:15 +02:00
|
|
|
<div className="row justify-content-center">
|
2020-09-11 08:55:29 +02:00
|
|
|
<h1>
|
|
|
|
<FormattedMessage id="message.page-not-found" defaultMessage="Page not found" />
|
|
|
|
</h1>
|
2020-08-15 10:17:15 +02:00
|
|
|
</div>
|
2020-07-17 10:03:38 +02:00
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|
2022-10-27 21:14:34 +02:00
|
|
|
|
|
|
|
export async function getServerSideProps() {
|
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
pageDisabled: !!process.env.DISABLE_UI,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|