"use strict";

require("./demo6.css");

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

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

var _2 = require("../..");

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

var Popup = _["default"].Popup;

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(Popup, {
  trigger: /*#__PURE__*/_react["default"].createElement(_2.Button, null, "Open first overlay"),
  triggerType: "click"
}, /*#__PURE__*/_react["default"].createElement("div", {
  className: "overlay-demo"
}, /*#__PURE__*/_react["default"].createElement(Popup, {
  trigger: /*#__PURE__*/_react["default"].createElement(_2.Button, null, "Open second overlay"),
  triggerType: "click",
  container: function container(trigger) {
    return trigger.parentNode;
  }
}, /*#__PURE__*/_react["default"].createElement("div", {
  className: "overlay-demo"
}, /*#__PURE__*/_react["default"].createElement("p", null, "Hello World From Second Overlay!"))), /*#__PURE__*/_react["default"].createElement("p", null, "Hello World From First Overlay!"))), document.getElementById('overlay-demo-6'));