/** Ticket status IDs — matches `tickets_status` table. */
export const TICKET_STATUS = {
  OPEN: 1,
  IN_PROGRESS: 2,
  RESOLVED: 3,
};

export function ticketStatusBadgeClass(statusId) {
  const id = Number(statusId);
  if (id === TICKET_STATUS.OPEN) return "swi-status-badge--opened";
  if (id === TICKET_STATUS.IN_PROGRESS) return "swi-status-badge--in-progress";
  if (id === TICKET_STATUS.RESOLVED) return "swi-status-badge--completed";
  return "swi-status-badge--unknown";
}
