Files
pn-new-crm/src/components/reports/report-status-badge.tsx
Matt 0e8feb1073 chore: prettier format pass on branch files
Auto-format all files modified during the documents-hub-split feature
branch that were not yet aligned with the project's Prettier config
(single quotes, semicolons, trailing commas).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 13:01:47 +02:00

32 lines
852 B
TypeScript

'use client';
import { Loader2 } from 'lucide-react';
import { Badge } from '@/components/ui/badge';
type ReportStatus = 'queued' | 'processing' | 'ready' | 'failed';
interface ReportStatusBadgeProps {
status: ReportStatus;
}
export function ReportStatusBadge({ status }: ReportStatusBadgeProps) {
switch (status) {
case 'queued':
return <Badge variant="outline">Queued</Badge>;
case 'processing':
return (
<Badge variant="secondary" className="gap-1">
<Loader2 className="h-3 w-3 animate-spin" />
Processing
</Badge>
);
case 'ready':
return <Badge className="bg-green-600 text-white hover:bg-green-700">Ready</Badge>;
case 'failed':
return <Badge variant="destructive">Failed</Badge>;
default:
return <Badge variant="outline">{status}</Badge>;
}
}