"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _MyModal = _interopRequireDefault(require("../MyModal"));
var _PictureGallery = _interopRequireDefault(require("../PictureGallery"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function ModalPictureGallery(props) {
  var _props$pictures = props.pictures,
    pictures = _props$pictures === void 0 ? [] : _props$pictures,
    currentIndex = props.currentIndex,
    cockpit = props.cockpit;
  return /*#__PURE__*/_react["default"].createElement(_MyModal["default"], _extends({
    width: document.body.clientWidth - 100,
    title: '查看图片',
    cockpit: cockpit,
    footer: null
  }, props), /*#__PURE__*/_react["default"].createElement(_PictureGallery["default"], {
    cockpit: cockpit,
    pictures: pictures,
    currentIndex: currentIndex
  }));
}
var _default = exports["default"] = ModalPictureGallery;
//# sourceMappingURL=index.js.map
