import type { TranslationModule } from "../types/translation-types";

export const TRANSLATION_MODULES: Array<{
  value: TranslationModule;
  label: string;
}> = [
  { value: "pswg", label: "PSWG" },
  { value: "ministry", label: "Ministry" },
  { value: "cdc", label: "CDC" },
  { value: "cefp", label: "CEFP" },
  { value: "cdcgpsf", label: "CDC G-PSF" },
];

export function getTranslationModuleLabel(
  module?: string | null,
): string {
  if (!module) {
    return "-";
  }

  return (
    TRANSLATION_MODULES.find(
      (item) => item.value === module,
    )?.label ?? module
  );
}
