export enum ProblemAssessmentStatus {
  Unassessed = 0,
  Assessing = 1,
  Assessed = 2,
}

export const statusOptions = [
  { label: '全部', value: undefined },
  { label: '未研判', value: ProblemAssessmentStatus.Unassessed },
  { label: '研判中', value: ProblemAssessmentStatus.Assessing },
  { label: '研判完成', value: ProblemAssessmentStatus.Assessed },
];

export const getStatusLabel = (status: number) => {
  return statusOptions.find(item => item.value === status)?.label;
};

export enum ProblemAssessmentPriority {
  Normal = 0,
  Emergency = 1,
}

export const priorityOptions = [
  { label: '全部', value: undefined },
  { label: '普通', value: ProblemAssessmentPriority.Normal },
  { label: '紧急', value: ProblemAssessmentPriority.Emergency },
];

export const getPriorityLabel = (priority: number) => {
  return priorityOptions.find(item => item.value === priority)?.label;
};
