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

export const workTypeMapping = {
  WRITING: "文字",
  MUSIC: "音乐",
  PHOTOGRAPHY: "摄影",
  ARTS: "美术",
  FILM: "视觉作品",
  OTHER: "其他",
};

export const workNatureMapping = {
  ORIGINAL: "原创",
  ADAPT: "改编",
  TRANSLATE: "翻译",
  NOTES: "注释",
  ARRANGEMENT: "整理",
  OTHER: "其他",
};

// 权利取得方式
export const gainSourceMapping = {
  ORIGINAL: "原始",
  INHERIT: "继承",
  BEAR: "承受",
  OTHER: "其他",
};
