'use client';

import { RequirementStatus } from '@ftb/shared';
import { REQUIREMENT_STATUS_LABEL, REQUIREMENT_STATUS_COLOR } from '@/lib/constants';

interface Props {
  status: RequirementStatus;
}

export function RequirementStatusBadge({ status }: Props) {
  return (
    <span className={`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${REQUIREMENT_STATUS_COLOR[status]}`}>
      {REQUIREMENT_STATUS_LABEL[status]}
    </span>
  );
}
