"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _reactDom = _interopRequireDefault(require("react-dom"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

// @ts-ignore
var createNode = function createNode(children, type) {
  var mountPoint = document.createElement("div");

  if (type === "tooltip") {
    mountPoint.className = "g2-tooltip";
  }

  _reactDom["default"].render(children, mountPoint);

  return mountPoint;
};

var _default = createNode;
exports["default"] = _default;