import { LanguageTypes } from "@/validations/mutual/language/validations"; type ParamsType = { page: string[] | undefined }; interface MaindasboardPageProps { params: Promise; searchParams: Promise<{ [key: string]: string | string[] | undefined }>; } interface DashboardLayoutProps { params: ParamsType; searchParams: { [key: string]: string | string[] | undefined }; lang: LanguageTypes; } type ModeTypes = "shortList" | "fullList" | "create" | "update" | "view"; const ModeTypesList = ["shortList", "fullList", "create", "update", "view"]; interface ContentProps { lang: LanguageTypes; translations: Record; activePageUrl: string; isMulti?: boolean; mode?: ModeTypes; } interface MenuProps { lang: LanguageTypes; menuItems: Record>; activePageUrl: string; menuTranslationsFlatten: Record>; } interface MenuSingleProps { lang: LanguageTypes; activePageUrl: string; translations: Record; menuItems: string[]; } interface FooterProps { translations: Record; } interface HeaderProps { translations: Record; lang: LanguageTypes; activePageUrl: string; } interface SingleLayerItemProps { isActive: boolean; innerText: string; url: string; } export type { MaindasboardPageProps, DashboardLayoutProps, ContentProps, MenuProps, SingleLayerItemProps, MenuSingleProps, FooterProps, HeaderProps, ModeTypes, }; export { ModeTypesList };