"use strict";

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

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

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

var _AppProvider = _interopRequireDefault(require("./AppProvider.react"));

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

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var DashRenderer = /*#__PURE__*/_createClass(function DashRenderer(hooks) {
  _classCallCheck(this, DashRenderer);

  // render Dash Renderer upon initialising!
  _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_AppProvider["default"], {
    hooks: hooks
  }), document.getElementById('react-entry-point'));
});

exports.DashRenderer = DashRenderer;