export function resolveSubmitActionLabel({
  isApplicationDocument,
  submitBusy
}) {
  if (isApplicationDocument) {
    return submitBusy ? '提交中' : '提交审批'
  }
  return submitBusy ? '提交中' : '提交审批'
}

export function resolveSubmitActionIcon({ isApplicationDocument }) {
  if (isApplicationDocument) {
    return 'mdi mdi-send-circle-outline'
  }
  return 'mdi mdi-send-circle-outline'
}

export function resolveSubmitConfirmDescription({ isApplicationDocument, hasHighRiskWarnings }) {
  if (isApplicationDocument) {
    return '请确认申请事由、预计金额和申请信息均已核对无误。确认后将提交至直属领导审批。'
  }
  if (hasHighRiskWarnings) {
    return '系统自动检测存在风险提示，请确认费用明细中的异常说明已按需补充。确认后将进入审批流程。'
  }
  return '系统已在草稿保存和附件识别后完成自动检测，请确认费用明细、附件材料和补充说明均已核对无误。确认后将进入审批流程。'
}

export function resolveSubmitConfirmText() {
  return '确认提交'
}
