umami/pages/404.js

19 lines
504 B
JavaScript
Raw Normal View History

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