'use client'; import { Badge } from '@/components/ui/Badge'; import { JiraAnomaly } from '@/services/integrations/jira/anomaly-detection'; interface AnomalySummaryProps { anomalies: JiraAnomaly[]; isExpanded: boolean; onToggleExpanded: () => void; } export function AnomalySummary({ anomalies, isExpanded, onToggleExpanded }: AnomalySummaryProps) { const criticalCount = anomalies.filter(a => a.severity === 'critical').length; const highCount = anomalies.filter(a => a.severity === 'high').length; const totalCount = anomalies.length; return (