import { cn } from '@/lib/cn'
import { ContractPhaseColor, ContractPhaseLabel } from '@/types/contracts'

export function PhaseBadge({ phase, className }: { phase: number; className?: string }) {
  return (
    <span className={cn('inline-flex rounded-full px-2 py-0.5 text-xs font-medium', ContractPhaseColor[phase], className)}>
      {ContractPhaseLabel[phase]}
    </span>
  )
}
