import { betweenGreenAndBlue, blue, green, red, yellow } from './btnStyle'
import pending from '@/assets/img/pending.png'
import check from '@/assets/img/check.png'
import error from '@/assets/img/error.png'

/**审核状态（待提交:WAITING_SUBMIT 待审核:WAITING_CHECK 备案成功:RECORD_SUCCESS 不通过:NOT_PASSED ） */
export enum eStatus {
  WAITING_SUBMIT,
  WAITING_CHECK,
  RECORD_SUCCESS,
  NOT_PASSED,
  ALL,
}

export const WAITING_SUBMIT = {
  value: eStatus.WAITING_SUBMIT,
  label: '待提交',
  style: blue,
  icon: undefined,
}

export const WAITING_CHECK = {
  value: eStatus.WAITING_CHECK,
  label: '待审核',
  style: yellow,
  icon: pending,
}

export const RECORD_SUCCESS = {
  value: eStatus.RECORD_SUCCESS,
  label: '备案成功',
  style: green,
  icon: check,
}

export const NOT_PASSED = {
  value: eStatus.NOT_PASSED,
  label: '备案失败',
  style: red,
  icon: error,
}

export const allStatus = [
  WAITING_SUBMIT,
  WAITING_CHECK,
  RECORD_SUCCESS,
  NOT_PASSED,
]
