import { RequirementStatus } from '@ftb/shared';

export const REQUIREMENT_STATUS_LABEL: Record<RequirementStatus, string> = {
  [RequirementStatus.DRAFT]: '草稿',
  [RequirementStatus.REVIEWING]: '评审中',
  [RequirementStatus.APPROVED]: '已通过',
  [RequirementStatus.REJECTED]: '已拒绝',
  [RequirementStatus.DELIVERED]: '已交付',
};

export const REQUIREMENT_STATUS_COLOR: Record<RequirementStatus, string> = {
  [RequirementStatus.DRAFT]: 'bg-gray-100 text-gray-700',
  [RequirementStatus.REVIEWING]: 'bg-blue-100 text-blue-700',
  [RequirementStatus.APPROVED]: 'bg-green-100 text-green-700',
  [RequirementStatus.REJECTED]: 'bg-red-100 text-red-700',
  [RequirementStatus.DELIVERED]: 'bg-purple-100 text-purple-700',
};

export const PRIORITY_LABEL: Record<number, string> = {
  0: '无',
  1: '低',
  2: '中',
  3: '高',
  4: '紧急',
};
