export function statusBadgeClass(status) {
  const key = String(status || "").toLowerCase().replace(/[^a-z_]/g, "_");
  const map = {
    draft: "swi-badge--draft",
    in_review: "swi-badge--in_review",
    approved: "swi-badge--approved",
    published: "swi-badge--published",
    archived: "swi-badge--archived",
  };
  return `swi-badge ${map[key] || "swi-badge--draft"}`;
}

export function formatStatusLabel(status) {
  if (!status) return "—";
  return String(status).replace(/_/g, " ");
}
