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

const STATUS_META: Record<string, { label: string; color: string }> = {
  PENDING_REVIEW: { label: 'Ausstehend', color: '#d97706' },
  APPROVED:       { label: 'Genehmigt',  color: '#1a7a4a' },
  REJECTED:       { label: 'Abgelehnt',  color: '#c0392b' },
  SHORTLISTED:    { label: 'Shortlist',  color: '#152642' },
}

export function MatchStatusBadge({ status }: { status?: MatchStatus }) {
  if (!status) return null
  const { label, color } = STATUS_META[status] ?? { label: status, color: '#64748b' }
  return <GenericBadge label={label} color={color} variant="solid" />
}
