"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = BaseInner;
var _components = require("@vtx/components");
var _antd = require("antd");
var _react = _interopRequireDefault(require("react"));
var _vmInfoCollection = _interopRequireDefault(require("../../../vm-info-collection"));
var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function BaseInner(_ref) {
  var photos = _ref.photos,
    baseInfo = _ref.baseInfo;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-top--base"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-top-img"
  }, photos.length ? /*#__PURE__*/_react["default"].createElement(_components.VtxImage.PreviewGroup, null, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
    style: {
      width: '315px',
      height: '240px'
    }
  }, photos.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(_components.VtxImage, {
      key: item.id,
      src: "/cloudFile/common/downloadFile?id=".concat(item.id),
      alt: item.name
    });
  }))) : /*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null)), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u57FA\u672C\u4FE1\u606F"
  }), /*#__PURE__*/_react["default"].createElement(_vmInfoCollection["default"], {
    data: baseInfo
  })));
}
//# sourceMappingURL=BaseInner.js.map
