umami/pages/404.js

28 lines
577 B
JavaScript
Raw Normal View History

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