feat(WEB-38, WEB-9, WEB-19): add static page for sponsoring, add Header and add Footer
This commit is contained in:
3
types/components/current/header.ts
Normal file
3
types/components/current/header.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export type HeaderProps = {
|
||||
pathname: string
|
||||
}
|
||||
9
types/components/current/languageSwitcher.ts
Normal file
9
types/components/current/languageSwitcher.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export type LanguageSwitcherLink = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
export type LanguageSwitcherProps = {
|
||||
currentLanguage: string
|
||||
links: LanguageSwitcherLink[]
|
||||
}
|
||||
14
types/lang.ts
Normal file
14
types/lang.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export const langEnum = {
|
||||
en: "en",
|
||||
sv: "sv",
|
||||
no: "no",
|
||||
fi: "fi",
|
||||
da: "da",
|
||||
de: "de",
|
||||
};
|
||||
|
||||
export type Lang = keyof typeof langEnum;
|
||||
|
||||
export type LangProps<T = {}> = T & {
|
||||
lang: Lang
|
||||
}
|
||||
5
types/params.ts
Normal file
5
types/params.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Lang } from "./lang";
|
||||
|
||||
export type Params<T = {}> = T & { params: { lang: Lang } };
|
||||
|
||||
export type SearchParams<T = {}> = T & { searchParams: { [key: string]: string } };
|
||||
Reference in New Issue
Block a user