import { cn } from "@/lib/utils"; /** * PipelineAlerts — WealthX DS * * Compact card showing opportunity counts broken down by priority level * (High / Medium / Low). Displayed alongside the PipelineChart in the * Loan CRM page header section. * * Data source: derived from pipeline board columns by counting opportunity * priorities across all stages. */ // --------------------------------------------------------------------------- // Types // --------------------------------------------------------------------------- export interface PipelineAlertCounts { high: number; medium: number; low: number; } export interface PipelineAlertsProps { counts: PipelineAlertCounts; className?: string; } // --------------------------------------------------------------------------- // PipelineAlerts // --------------------------------------------------------------------------- const PRIORITY_ROWS: Array<{ key: keyof PipelineAlertCounts; label: string; dotColor: string; }> = [ { key: "high", label: "High", dotColor: "var(--color-destructive)" }, { key: "medium", label: "Medium", dotColor: "var(--color-warning)" }, { key: "low", label: "Low", dotColor: "var(--color-success)" }, ]; export function PipelineAlerts({ counts, className }: PipelineAlertsProps) { return (