14 lines
533 B
TypeScript
14 lines
533 B
TypeScript
import type { Severity } from "@/types/severity";
|
|
|
|
/** 다크 섹션 카드 우측 상단 심각도 점 — `index.css` 시맨틱 dot 토큰 */
|
|
export function problemDiagnosisSeverityDotClass(severity: Severity): string {
|
|
const map: Record<Severity, string> = {
|
|
critical: "bg-[var(--color-status-critical-dot)]",
|
|
warning: "bg-[var(--color-status-warning-dot)]",
|
|
good: "bg-[var(--color-status-good-dot)]",
|
|
excellent: "bg-[var(--color-status-info-dot)]",
|
|
unknown: "bg-neutral-60",
|
|
};
|
|
return map[severity];
|
|
}
|