"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _Icon = _interopRequireDefault(require("../Icon"));
var _classnames = _interopRequireDefault(require("classnames"));
require("./index.less");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = exports["default"] = function _default(props) {
  var label = props.label,
    icon = props.icon,
    active = props.active,
    onClick = props.onClick;
  return /*#__PURE__*/_react["default"].createElement("div", {
    onClick: onClick,
    className: (0, _classnames["default"])('cs-map-tools-item', {
      'cs-map-tools-active-item': active
    })
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])('icon')
  }, typeof icon === 'string' ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
    type: icon
  }) : icon), /*#__PURE__*/_react["default"].createElement("div", null, label));
};
//# sourceMappingURL=index.js.map
