"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var classPrefix = 'selectTools';
var Info = function Info(props) {
  var list = props.list;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(classPrefix, "-info")
  }, list.map(function (item, index) {
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: "".concat(classPrefix, "-info-item"),
      key: index,
      onClick: function onClick() {
        return item === null || item === void 0 ? void 0 : item.onClick(item);
      },
      style: {
        cursor: item.onClick ? 'pointer' : 'default'
      }
    }, /*#__PURE__*/_react["default"].createElement("div", {
      className: "".concat(classPrefix, "-info-item-value")
    }, item.value, item.unit && /*#__PURE__*/_react["default"].createElement("span", {
      className: "".concat(classPrefix, "-info-item-unit")
    }, item.unit)), /*#__PURE__*/_react["default"].createElement("div", {
      className: "".concat(classPrefix, "-info-item-label")
    }, item.label));
  }));
};
var _default = Info;
exports["default"] = _default;
//# sourceMappingURL=index.js.map
