"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _index = _interopRequireDefault(require("../index"));
var _DetailModal = _interopRequireDefault(require("../Cycle/DetailModal"));
var _AddModal = _interopRequireDefault(require("./AddModal"));
var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /**
 * @returns 临时任务
 */
function Temporary(props) {
  var _props$processConfig = props.processConfig,
    processConfig = _props$processConfig === void 0 ? [] : _props$processConfig,
    missionType = props.missionType,
    titleConfig = props.titleConfig,
    _props$businessList = props.businessList,
    businessList = _props$businessList === void 0 ? [] : _props$businessList;
  function renderAddModal(config) {
    return /*#__PURE__*/_react["default"].createElement(_AddModal["default"], _extends({
      processConfig: processConfig,
      missionType: missionType,
      titleConfig: titleConfig,
      businessList: businessList
    }, config));
  }
  function renderDetailModal(config) {
    return /*#__PURE__*/_react["default"].createElement(_DetailModal["default"], _extends({
      processConfig: processConfig,
      missionType: missionType,
      titleConfig: titleConfig
    }, config));
  }
  return /*#__PURE__*/_react["default"].createElement(_index["default"], _extends({
    renderAddModal: renderAddModal,
    renderDetailModal: renderDetailModal
  }, props));
}
Temporary.propTypes = {
  processConfig: _propTypes["default"].array,
  missionType: _propTypes["default"].any,
  titleConfig: _propTypes["default"].any,
  businessList: _propTypes["default"].array
};
var _default = exports["default"] = Temporary;
//# sourceMappingURL=index.js.map
