-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathnot-found.tsx
More file actions
22 lines (19 loc) · 930 Bytes
/
not-found.tsx
File metadata and controls
22 lines (19 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from "react";
import { getLayoutDictionary } from "@/features/localization/services/language-dictionary.service";
import { getLanguageCodeFromHeaders } from "@/features/localization/services/app-language.service";
import { getThemeCodeFromCookies } from "@/features/themes/services/theme.service";
import { ErrorPageComponent } from "@/features/common/components/errors/error-page/error-page.component";
import { NotFoundComponent } from "@/features/common/components/errors/not-found/not-found.component";
export default function NotFound() {
const languageCode = getLanguageCodeFromHeaders();
const themeCode = getThemeCodeFromCookies();
const layoutDictionary = getLayoutDictionary(languageCode);
return (
<ErrorPageComponent
languageCode={languageCode}
themeCode={themeCode}
>
<NotFoundComponent metadata={layoutDictionary.errors.notFound} />
</ErrorPageComponent>
);
}