import type { DepartmentKey } from "@/lib/types";

export const DEPARTMENT_LABELS: Record<DepartmentKey, string> = {
  marketing: "Mercadotecnia",
  administracion: "Administracion",
  capital_humano: "Capital Humano",
  operaciones: "Operaciones",
  proyectos: "Proyectos",
};

const WORKSPACE_DEPARTMENT_ORDER: DepartmentKey[] = ["marketing", "capital_humano", "operaciones", "proyectos"];

export const DEPARTMENT_OPTIONS: Array<{ value: DepartmentKey; label: string }> = WORKSPACE_DEPARTMENT_ORDER.map((value) => ({
  value,
  label: DEPARTMENT_LABELS[value],
}));

export function getDepartmentLabel(department: DepartmentKey): string {
  return DEPARTMENT_LABELS[department] ?? department;
}
