import React from 'react' import { FileText, CheckCircle, AlertCircle, Clock, RefreshCw } from 'lucide-react' import { StatsCard, DataQualityPanel, ActiveModelPanel, RecentActivityPanel, SystemStatusBar, } from './dashboard/index' import { useDashboard } from '../hooks/useDashboard' interface DashboardOverviewProps { onNavigate: (view: string) => void } export const DashboardOverview: React.FC = ({ onNavigate }) => { const { stats, model, runningTraining, activities, isLoading, error, } = useDashboard() const handleStatsClick = (filter?: string) => { if (filter) { onNavigate(`documents?status=${filter}`) } else { onNavigate('documents') } } if (error) { return (

Failed to load dashboard

{error instanceof Error ? error.message : 'An unexpected error occurred'}

) } return (
{/* Header */}

Dashboard

Overview of your document annotation system

{/* Stats Cards Row */}
handleStatsClick()} /> handleStatsClick('labeled')} /> handleStatsClick('labeled')} /> handleStatsClick('pending')} />
{/* Two-column layout: Data Quality + Active Model */}
handleStatsClick('labeled')} /> onNavigate('training')} />
{/* Recent Activity */}
{/* System Status */}
) }