"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _Left = _interopRequireDefault(require("./Left"));
var _Hot = _interopRequireDefault(require("./Hot"));
var _Trend = _interopRequireDefault(require("./Trend"));
var _Manage = _interopRequireDefault(require("./Manage"));
var _RightBottom = _interopRequireDefault(require("./RightBottom"));
require("./index.less");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var OverView = function OverView(_ref) {
  var _ref$classPrefix = _ref.classPrefix,
    classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
    id = _ref.id,
    basicInfo = _ref.basicInfo,
    serviceList = _ref.serviceList,
    garbageNames = _ref.garbageNames,
    garbageIcons = _ref.garbageIcons;
  var prefix = "".concat(classPrefix, "-overview");
  var common = {
    classPrefix: prefix,
    id: id,
    serviceList: serviceList
  };
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: prefix
  }, /*#__PURE__*/_react["default"].createElement(_Left["default"], Object.assign({}, common, {
    basicInfo: basicInfo,
    garbageNames: garbageNames
  })), (serviceList === null || serviceList === void 0 ? void 0 : serviceList.includes('THROW')) && (/*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(prefix, "-middle")
  }, /*#__PURE__*/_react["default"].createElement(_Hot["default"], Object.assign({}, common, {
    garbageIcons: garbageIcons
  })), /*#__PURE__*/_react["default"].createElement(_Trend["default"], Object.assign({}, common)))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(prefix, "-right")
  }, /*#__PURE__*/_react["default"].createElement(_Manage["default"], Object.assign({}, common)), /*#__PURE__*/_react["default"].createElement(_RightBottom["default"], Object.assign({}, common))));
};
var _default = exports["default"] = OverView;
//# sourceMappingURL=index.js.map
