import { Play, Clock, Timer, Weight, CheckCircle } from 'lucide-react'; import { formatDuration } from '../utils/date'; function formatWeight(g: number): string { if (g >= 1000) return `${(g / 1000).toFixed(1)}kg`; return `${Math.round(g)}g`; } export function QueueStatsBar({ activeCount, pendingCount, totalTime, totalWeight, historyCount, t, }: { activeCount: number; pendingCount: number; totalTime: number; totalWeight: number; historyCount: number; t: (key: string) => string; }) { const stats = [ { icon: Play, value: activeCount, label: t('queue.summary.printing'), color: 'text-blue-600 dark:text-blue-400' }, { icon: Clock, value: pendingCount, label: t('queue.summary.queued'), color: 'text-yellow-600 dark:text-yellow-400' }, { icon: Timer, value: formatDuration(totalTime), label: t('queue.summary.totalTime'), color: 'text-bambu-green' }, { icon: Weight, value: formatWeight(totalWeight), label: t('queue.summary.totalWeight'), color: 'text-purple-600 dark:text-purple-400' }, { icon: CheckCircle, value: historyCount, label: t('queue.summary.history'), color: 'text-bambu-gray' }, ]; return (