export type TranslationModule =
  | "pswg"
  | "ministry"
  | "cdc"
  | "cefp"
  | "cdcgpsf";

export type Translation = {
  id: number;
  translationKey: string;
  englishText: string;
  khmerText: string;
  module: TranslationModule | null;
  page: string | null;
  parentId: number | null;
  isActive: boolean;
  createdAt: string;
  updatedAt: string;
};

export type TranslationFormData = {
  translationKey: string;
  englishText: string;
  khmerText: string;
  module: TranslationModule;
  page: string;
  parentId?: number | null;
  isActive: boolean;
};

export type TranslationMeta = {
  page: number;
  limit: number;
  total: number;
  totalPages: number;
  hasNextPage: boolean;
  hasPreviousPage: boolean;
};

export type TranslationListData = {
  items: Translation[];
  meta: TranslationMeta;
};

export type TranslationPageOption = {
  id: number;
  page: string;
  translationKey?: string;
  nameEn: string;
  nameKh: string;
  parentId: number | null;
};
