You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
980 B
35 lines
980 B
import PageTitle from '@app/components/Common/PageTitle';
|
|
import { ArrowRightCircleIcon } from '@heroicons/react/24/outline';
|
|
import Link from 'next/link';
|
|
import { defineMessages, useIntl } from 'react-intl';
|
|
|
|
const messages = defineMessages({
|
|
errormessagewithcode: '{statusCode} - {error}',
|
|
pagenotfound: 'Page Not Found',
|
|
returnHome: 'Return Home',
|
|
});
|
|
|
|
const Custom404 = () => {
|
|
const intl = useIntl();
|
|
|
|
return (
|
|
<div className="error-message">
|
|
<PageTitle title={intl.formatMessage(messages.pagenotfound)} />
|
|
<div className="text-4xl">
|
|
{intl.formatMessage(messages.errormessagewithcode, {
|
|
statusCode: 404,
|
|
error: intl.formatMessage(messages.pagenotfound),
|
|
})}
|
|
</div>
|
|
<Link href="/">
|
|
<a className="mt-2 flex">
|
|
{intl.formatMessage(messages.returnHome)}
|
|
<ArrowRightCircleIcon className="ml-2 h-6 w-6" />
|
|
</a>
|
|
</Link>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Custom404;
|