'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 (
{stats?.total_items || 0}
{stats?.labeled_items || 0}
{stats?.pending_items || 0}
{stats?.accuracy_rate || 0}%
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
{Math.round((stats.labeled_items / stats.total_items) * 100)}% abgeschlossen