import { AlertTriangle } from "lucide-react"; import { cn } from "@/lib"; interface AlertPillProps { value: number; label?: string; iconSize?: number; textSize?: "xs" | "sm" | "base"; } const TEXT_SIZE_CLASSES = { sm: "text-sm", base: "text-base", xs: "text-xs", } as const; export function AlertPill({ value, label = "Fail Findings", iconSize = 12, textSize = "xs", }: AlertPillProps) { const textSizeClass = TEXT_SIZE_CLASSES[textSize]; // Chart alert colors are theme-aware variables from globals.css return (
{value}
{label}
); }