import { eStatus } from "../../components/ApproveStatus/status";
import { eOperate } from "./types";
export const mappingFromStatusToOperate = {
  [eStatus.WAITING_SUBMIT]: [
    eOperate.seeDetails,
    eOperate.edit,
    eOperate.delete,
  ],
  [eStatus.WAITING_CHECK]: [eOperate.seeDetails],
  [eStatus.RECORD_SUCCESS]: [
    eOperate.seeDetails,
    eOperate.viewCertificates,
    eOperate.downloadCertificates,
  ],
  [eStatus.NOT_PASSED]: [eOperate.seeDetails, eOperate.delete],
};
