"use client"; import { Card, CardContent } from "@/components/ui/card"; import { useStats } from "@/hooks/useStats"; import { SimpleStatsChart } from "./charts/simple-stats-chart"; import { ModelDistributionChart } from "./charts/model-distribution-chart"; import { AlertCircle } from "lucide-react"; export function RealTimeStats() { const { stats, loading, error } = useStats(); if (loading) { return (
); } if (error) { return (

Erreur lors du chargement des données

Erreur lors du chargement des données

); } if (!stats) { return (

Aucune donnée disponible

Aucune donnée disponible

); } return (
); }