import type { ResultType } from '../../domain/enums'
import { Chip } from '@mui/material'

const TYPE_META: Record<string, { label: string; color: string }> = {
  VERIFIED_PORTFOLIO:  { label: 'Verified Portfolio', color: '#1e3a5f' },
  EXTERNAL_MARKET:     { label: 'Marktinserat',       color: '#d97706' },
  FUTURE_AVAILABILITY: { label: 'Zukunftssignal',     color: '#7c3aed' },
}

export function ResultTypeBadge({ resultType }: { resultType: ResultType }) {
  const meta = TYPE_META[resultType] ?? { label: resultType, color: '#64748b' }
  return (
    <Chip
      label={meta.label}
      size="small"
      sx={{ bgcolor: meta.color, color: 'white', fontWeight: 600, fontSize: 11 }}
    />
  )
}
