import { ARTICLE_TYPE } from "@/constants/article-content-types";

/** Tabs on News & Services landing — maps to `articles.type_id`. */
export type NewsServicesTab = "audio-visual" | "audio" | "foto" | "teks";

export const NEWS_SERVICES_TAB_ORDER: NewsServicesTab[] = [
  "audio-visual",
  "audio",
  "foto",
  "teks",
];

/** Audio Visual → Video, Foto → Image, etc. */
export const NEWS_TAB_TO_TYPE_ID: Record<NewsServicesTab, number> = {
  "audio-visual": ARTICLE_TYPE.VIDEO,
  audio: ARTICLE_TYPE.AUDIO,
  foto: ARTICLE_TYPE.IMAGE,
  teks: ARTICLE_TYPE.TEXT,
};

export const NEWS_TAB_LABEL: Record<NewsServicesTab, string> = {
  "audio-visual": "Audio Visual",
  audio: "Audio",
  foto: "Foto",
  teks: "Teks",
};
