import { GenericBadge } from '../shared/GenericBadge'
import type { ReviewStatus } from '../../domain/enums'

const CONFIG: Record<ReviewStatus, { label: string; color: string }> = {
  UNREVIEWED: { label: 'Ungeprüft',  color: '#94a3b8' },
  IN_REVIEW:  { label: 'In Prüfung', color: '#d97706' },
  APPROVED:   { label: 'Genehmigt',  color: '#1a7a4a' },
  REJECTED:   { label: 'Abgelehnt',  color: '#c0392b' },
  FLAGGED:    { label: 'Markiert',   color: '#ea580c' },
}

export function AIOutputStatusBadge({ status }: { status: ReviewStatus }) {
  const { label, color } = CONFIG[status] ?? { label: status, color: '#64748b' }
  return <GenericBadge label={label} color={color} />
}
