"use strict";

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

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

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

// const singletonFetchAssetsAndAppend = SingletonFetchAssetsAndAppend();
var Chart = function Chart(props) {
  var _window, _window$SupersetChart;

  // useEffect(() => {
  //   singletonFetchAssetsAndAppend()?.then(() => {
  //     setIsInit(true);
  //   });
  // }, []);
  var Chart = (_window = window) === null || _window === void 0 ? void 0 : (_window$SupersetChart = _window.SupersetChart) === null || _window$SupersetChart === void 0 ? void 0 : _window$SupersetChart.SupersetChart;
  return Chart ? /*#__PURE__*/_react["default"].createElement(Chart, props) : /*#__PURE__*/_react["default"].createElement("div", null);
};

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