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

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