'use client' /** * Stats tab: global statistics, detailed breakdown, and progress bar. */ import type { OCRStats } from '../types' interface StatsTabProps { stats: OCRStats | null } export function StatsTab({ stats }: StatsTabProps) { 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}
) }