"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.Prevent = void 0;var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _react = _interopRequireDefault(require("react"));var





Prevent = exports.Prevent = /*#__PURE__*/function (_React$Component) {function Prevent() {var _this;for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;_this.




    _prevent = function (event) {
      event.stopPropagation();
      event.preventDefault();
    };return _this;}(0, _inheritsLoose2.default)(Prevent, _React$Component);var _proto = Prevent.prototype;_proto.render = function render() {return /*#__PURE__*/_react.default.createElement("span", { onClick: this._prevent }, this.props.children);};return Prevent;}(_react.default.Component);