import type { Severity } from "@/lib/types"; const _labels: Record = { critical: "Crítico", high: "Alto", medium: "Médio", low: "Baixo", info: "Info", }; const _class: Record = { critical: "text-bg-dark", high: "text-bg-danger", medium: "text-bg-warning", low: "text-bg-info", info: "text-bg-light text-dark border", }; export function SeverityBadge({ severity }: { severity: Severity }) { return {_labels[severity]}; }