import type { Dict } from "./types"; import { createDict } from "./utils"; import { TEXT } from "../locales"; const items = [ { value: "TODO", label: TEXT.enums.generalStatus.TODO, color: "info", order: 1 }, { value: "DOING", label: TEXT.enums.generalStatus.DOING, color: "warning", order: 2 }, { value: "DONE", label: TEXT.enums.generalStatus.DONE, color: "success", order: 3 }, { value: "BLOCKED", label: TEXT.enums.generalStatus.BLOCKED, color: "danger", order: 4 }, { value: "DRAFT", label: TEXT.enums.generalStatus.DRAFT, color: "info", order: 10 }, { value: "SUBMITTED", label: TEXT.enums.generalStatus.SUBMITTED, color: "warning", order: 11 }, { value: "APPROVED", label: TEXT.enums.generalStatus.APPROVED, color: "success", order: 12 }, { value: "REJECTED", label: TEXT.enums.generalStatus.REJECTED, color: "danger", order: 13 }, { value: "PAID", label: TEXT.enums.generalStatus.PAID, color: "success", order: 14 }, { value: "CLOSED", label: TEXT.enums.generalStatus.CLOSED, color: "success", order: 20 }, { value: "OPEN", label: TEXT.enums.generalStatus.OPEN, color: "info", order: 19 }, { value: "NEW", label: TEXT.enums.generalStatus.NEW, color: "info", order: 17 }, { value: "FOLLOW_UP", label: TEXT.enums.generalStatus.FOLLOW_UP, color: "warning", order: 18 }, { value: "OVERDUE", label: TEXT.enums.generalStatus.OVERDUE, color: "danger", order: 30 }, { value: "SCREENING", label: TEXT.enums.generalStatus.SCREENING, color: "info", order: 40 }, { value: "ENROLLED", label: TEXT.enums.generalStatus.ENROLLED, color: "success", order: 41 }, { value: "COMPLETED", label: TEXT.enums.generalStatus.COMPLETED, color: "success", order: 42 }, { value: "DROPPED", label: TEXT.enums.generalStatus.DROPPED, color: "danger", order: 43 }, ]; export const statusDict: Dict = createDict(items);