umami/pages/404.js

19 lines
504 B
JavaScript
Raw Normal View History

2023-01-11 23:47:38 +01:00
import AppLayout from 'components/layout/AppLayout';
2023-01-10 08:59:26 +01:00
import { useIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
notFound: { id: 'message.page-not-found', defaultMessage: 'Page not found' },
});
2020-07-17 10:03:38 +02:00
export default function Custom404() {
2023-01-10 08:59:26 +01:00
const { formatMessage } = useIntl();
2020-07-17 10:03:38 +02:00
return (
2023-01-11 23:47:38 +01:00
<AppLayout>
2020-08-15 10:17:15 +02:00
<div className="row justify-content-center">
2023-01-10 08:59:26 +01:00
<h1 style={{ textAlign: 'center' }}>{formatMessage(messages.notFound)}</h1>
2020-08-15 10:17:15 +02:00
</div>
2023-01-11 23:47:38 +01:00
</AppLayout>
2020-07-17 10:03:38 +02:00
);
}