'use client'; import { CheckCircle, Loader2, XCircle } from 'lucide-react'; import type { ReportStatus } from '@/lib/reports-api'; const statusConfig: Record = { GENERATING: { label: 'Đang tạo...', icon: Loader2, className: 'text-blue-600 bg-blue-50' }, READY: { label: 'Hoàn thành', icon: CheckCircle, className: 'text-green-600 bg-green-50' }, FAILED: { label: 'Lỗi', icon: XCircle, className: 'text-red-600 bg-red-50' }, }; export function ReportStatusBadge({ status }: { status: ReportStatus }) { const config = statusConfig[status]; const Icon = config.icon; return ( {config.label} ); }