import { AbsenceReason } from "@prisma/client";

export function reasonLabel(reason: AbsenceReason) {
  if (reason === AbsenceReason.ILLNESS) return "Krank";
  if (reason === AbsenceReason.VACATION) return "Urlaub";
  return "Sonstiges";
}

export function reasonColor(reason: AbsenceReason) {
  if (reason === AbsenceReason.ILLNESS) return "var(--danger)";
  if (reason === AbsenceReason.VACATION) return "var(--warn)";
  return "var(--accent)";
}
