24 lines
577 B
JavaScript
24 lines
577 B
JavaScript
import React from 'react';
|
|
import Layout from 'components/layout/Layout';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
export default function Custom404({ settingsDisabled }) {
|
|
return (
|
|
<Layout settingsDisabled={settingsDisabled}>
|
|
<div className="row justify-content-center">
|
|
<h1>
|
|
<FormattedMessage id="message.page-not-found" defaultMessage="Page not found" />
|
|
</h1>
|
|
</div>
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
settingsDisabled: !!process.env.CLOUD_MODE,
|
|
},
|
|
};
|
|
}
|