"use client" interface StatusIndicatorProps { status: 'success' | 'pending' | 'error' | 'missing'; label: string; href?: string; } export function StatusIndicator({ status, label, href }: StatusIndicatorProps) { const getStatusColor = (status: string) => { switch (status) { case 'success': return 'bg-ods-success text-ods-success'; case 'pending': return 'bg-ods-warning text-ods-warning'; case 'error': return 'bg-ods-error text-ods-error'; case 'missing': return 'bg-ods-warning text-ods-warning'; default: return 'bg-ods-text-muted text-ods-text-muted'; } }; const colorClasses = getStatusColor(status); const [dotColor, textColor] = colorClasses.split(' '); const content = (
{label}
); if (href) { return ( {content} ); } return content; }