"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
require("./index.less");
var _style = _interopRequireDefault(require("../../_mapUtil/style"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var prefixCls = 'ol-map-analysis-img-item-value';
var ItemValue = function ItemValue(_ref) {
  var _ref$label = _ref.label,
    label = _ref$label === void 0 ? '规划铺设污水管网总里程' : _ref$label,
    _ref$img = _ref.img,
    img = _ref$img === void 0 ? 'ghps' : _ref$img,
    _ref$value = _ref.value,
    value = _ref$value === void 0 ? 900 : _ref$value,
    _ref$unit = _ref.unit,
    unit = _ref$unit === void 0 ? 'km' : _ref$unit,
    _ref$valueStyle = _ref.valueStyle,
    valueStyle = _ref$valueStyle === void 0 ? {} : _ref$valueStyle,
    _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(prefixCls, "-wrap"),
    style: style
  }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
    src: require("./assets/".concat(img, ".png")),
    className: "".concat(prefixCls, "-img")
  }), /*#__PURE__*/_react["default"].createElement("span", null, label)), /*#__PURE__*/_react["default"].createElement("div", {
    style: valueStyle
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: "".concat(prefixCls, "-value")
  }, value), /*#__PURE__*/_react["default"].createElement("span", {
    className: "".concat(prefixCls, "-unit")
  }, unit)));
};
ItemValue.propTypes = {
  label: _propTypes["default"].string,
  img: _propTypes["default"].string,
  value: _propTypes["default"].number,
  unit: _propTypes["default"].string
};
var _default = exports["default"] = ItemValue;
//# sourceMappingURL=index.js.map
