49 lines
1.8 KiB
JavaScript
49 lines
1.8 KiB
JavaScript
// 404.js
|
|
import useTranslation from "next-translate/useTranslation";
|
|
import Head from "next/head";
|
|
import Link from "next/link";
|
|
import CookieBanner from "../components/cookieBanner";
|
|
import Footer from "../components/footer";
|
|
import Header from "../components/header";
|
|
|
|
const FileNotAvailable = (props) => {
|
|
let { t, lang } = useTranslation();
|
|
const { footerLinks, pages } = props;
|
|
|
|
const previousURL = document.referrer;
|
|
|
|
return (
|
|
<div>
|
|
<Head>
|
|
<title>
|
|
{t("common:404-not-found-title")} -{" "}
|
|
{t("common:service-name")}
|
|
</title>
|
|
</Head>
|
|
<div id="page_wrapper">
|
|
<CookieBanner />
|
|
<Header />
|
|
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
|
<main className="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
|
<div className="govuk-grid-row">
|
|
<div className="govuk-grid-column-full ">
|
|
<h1>File not available</h1>
|
|
<p className="govuk-body">
|
|
At this time, the document you require is
|
|
not available, please try again later.
|
|
</p>
|
|
<Link href={previousURL}>
|
|
Return to case details
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<Footer footerLinks={footerLinks} ticketnumber={props} />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default FileNotAvailable;
|