import { LanguageTypes } from "@/validations/mutual/language/validations";
import { ParamsType } from "@/validations/mutual/pages/props";

interface MaindasboardPageProps {
  params: Promise<ParamsType>;
  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<string, string>;
  activePageUrl: string;
  isMulti?: boolean;
  mode?: ModeTypes;
}

interface MenuProps {
  lang: LanguageTypes;
  availableApplications: string[];
  activePageUrl: string;
}

interface FooterProps {
  translations: Record<string, string>;
}

interface HeaderProps {
  translations: Record<string, string>;
  lang: LanguageTypes;
  activePageUrl: string;
  prefix: string;
}

export type {
  MaindasboardPageProps,
  DashboardLayoutProps,
  ContentProps,
  MenuProps,
  FooterProps,
  HeaderProps,
  ModeTypes,
};

export { ModeTypesList };
