'use client'; import { JiraAnomaly } from '@/services/jira-anomaly-detection'; import { AnomalyItem } from './AnomalyItem'; interface AnomalyListProps { anomalies: JiraAnomaly[]; loading: boolean; error: string | null; } export function AnomalyList({ anomalies, loading, error }: AnomalyListProps) { if (error) { return (

❌ {error}

); } if (loading) { return (

Analyse en cours...

); } if (anomalies.length === 0) { return (

Aucune anomalie détectée

Toutes les métriques sont dans les seuils normaux

); } return (
{anomalies.map((anomaly) => ( ))}
); }