const statusColors: Record<string, string> = {
  pending: 'bg-yellow-900/30 text-yellow-400',
  approved: 'bg-blue-900/30 text-blue-400',
  searching: 'bg-cyan-900/30 text-cyan-400',
  downloading: 'bg-orange-900/30 text-orange-400',
  fulfilled: 'bg-green-900/30 text-green-400',
  failed: 'bg-red-900/30 text-red-400',
  available: 'bg-green-900/30 text-green-400',
  unavailable: 'bg-red-900/30 text-red-400',
  imported: 'bg-green-900/30 text-green-400',
  completed: 'bg-green-900/30 text-green-400',
  rejected: 'bg-red-900/30 text-red-400',
}

export default function StatusBadge({ status }: { status: string }) {
  const colorClass = statusColors[status] ?? 'bg-gray-800 text-gray-400'

  return (
    <span className={`px-2 py-0.5 rounded text-xs font-medium ${colorClass}`} aria-label={status}>
      {status}
    </span>
  )
}
