import type { Lang } from "@/constants/languages" import type { PageContentTypeEnum } from "./requests/contentType" export type SearchParams = { searchParams: S & { [key: string]: string } } export type Params

= { params: P } export type LangParams = { lang: Lang } export type StatusParams = { status: number } export type ContentTypeParams = { contentType: | PageContentTypeEnum.loyaltyPage | PageContentTypeEnum.contentPage | PageContentTypeEnum.hotelPage | PageContentTypeEnum.collectionPage } export type ContentTypeWebviewParams = { contentType: "loyalty-page" | "account-page" } export type UIDParams = { uid: string } export type UriParams = { uri: string | string[] } export type PreviewParams = { uri?: string live_preview?: string } export type LayoutArgs

= P extends undefined ? {} : Params

export type PageArgs

= LayoutArgs

& (S extends undefined ? {} : SearchParams)