"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
require("./style");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
 * 内部组件-左侧图标，右侧名称和数值
 */

var ImageText = function ImageText(props) {
  var src = props.src,
    name = props.name,
    value = props.value,
    unit = props.unit,
    color = props.color,
    style = props.style;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "vm-image-text-item",
    style: style
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: src
  }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "vm-image-text-item--name"
  }, name), /*#__PURE__*/_react["default"].createElement("div", {
    className: "vm-image-text-item--value ".concat(color)
  }, /*#__PURE__*/_react["default"].createElement("span", null, value || 0), unit)));
};
var _default = ImageText;
exports["default"] = _default;
//# sourceMappingURL=index.js.map
