'use client' import type { OCRStats } from '../types' export default function StatsTab({ stats }: { stats: OCRStats | null }) { return (
{/* Global Stats */}

Gesamt Items

{stats?.total_items || 0}

Gelabelt

{stats?.labeled_items || 0}

Ausstehend

{stats?.pending_items || 0}

OCR-Genauigkeit

{stats?.accuracy_rate || 0}%

{/* Detailed Stats */}

Details

Bestaetigt

{stats?.confirmed_items || 0}

Korrigiert

{stats?.corrected_items || 0}

Exportierbar

{stats?.exportable_items || 0}

Durchschn. Label-Zeit

{stats?.avg_label_time_seconds || 0}s

{/* Progress Bar */} {stats?.total_items ? (

Fortschritt

{Math.round((stats.labeled_items / stats.total_items) * 100)}% abgeschlossen

) : null}
) }