umami/pages/404.js

24 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-12 22:35:33 +00:00
export default function Custom404({ settingsDisabled }) {
2020-07-17 08:03:38 +00:00
return (
2022-10-12 22:35:33 +00:00
<Layout settingsDisabled={settingsDisabled}>
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-12 22:35:33 +00:00
export async function getServerSideProps() {
return {
props: {
settingsDisabled: !!process.env.CLOUD_MODE,
},
};
}