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

const STATUS_META: Record<string, { label: string; color: string }> = {
  DRAFT:        { label: 'Entwurf',     color: '#64748b' },
  REVIEW_READY: { label: 'Prüfbereit',  color: '#d97706' },
  FINALIZED:    { label: 'Finalisiert', color: '#1a7a4a' },
  ARCHIVED:     { label: 'Archiviert',  color: '#475569' },
  ACTIVE:       { label: 'Aktiv',       color: '#152642' },
  SHARED:       { label: 'Geteilt',     color: '#7c3aed' },
  CONVERTED:    { label: 'Konvertiert', color: '#0891b2' },
}

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