"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _antd = require("antd");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
require("./index.less");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var prefixCls = 'ol-analysis-detail-statistics';
var AnalysisDetailStatistics = function AnalysisDetailStatistics(_ref) {
  var list = _ref.list;
  return /*#__PURE__*/_react["default"].createElement(_antd.Row, null, list.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
      span: 8,
      className: prefixCls,
      key: item.label
    }, /*#__PURE__*/_react["default"].createElement("img", {
      src: item.icon,
      className: "".concat(prefixCls, "-img")
    }), /*#__PURE__*/_react["default"].createElement("div", {
      className: "".concat(prefixCls, "-content")
    }, /*#__PURE__*/_react["default"].createElement("span", null, item.label), /*#__PURE__*/_react["default"].createElement(_antd.Space, {
      className: "".concat(prefixCls, "-number"),
      style: {
        color: item.color
      }
    }, /*#__PURE__*/_react["default"].createElement("span", null, item.value), /*#__PURE__*/_react["default"].createElement("span", {
      className: "".concat(prefixCls, "-unit")
    }, item.unit))));
  }));
};
AnalysisDetailStatistics.propTypes = {
  list: _propTypes["default"].array
};
var _default = exports["default"] = AnalysisDetailStatistics;
//# sourceMappingURL=index.js.map
