import type { IncidentState } from "@/lib/types"; const _labels: Record = { open: "Aberto", investigating: "Em investigação", resolved: "Resolvido", ignored: "Ignorado", }; const _class: Record = { open: "text-bg-danger", investigating: "text-bg-warning", resolved: "text-bg-success", ignored: "text-bg-secondary", }; export function StateBadge({ state }: { state: IncidentState }) { return {_labels[state]}; }