"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 _utils = require("../../_mapUtil/utils");
var _config = _interopRequireDefault(require("../../_mapUtil/config"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var colorMap = _config["default"].colorMap;
var MyTag = function MyTag(_ref) {
  var color = _ref.color,
    text = _ref.text;
  var _color = color || colorMap.green;
  var background = (0, _utils.transformRgb)(_color, 0.15);
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "ol-map-analysis-tag",
    style: {
      color: _color,
      background: background
    }
  }, text);
};
MyTag.propTypes = {
  color: _propTypes["default"].string,
  text: _propTypes["default"].string
};
var _default = exports["default"] = MyTag;
//# sourceMappingURL=index.js.map
