"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ClientContext = ClientContext;
function _react() {
  const data = _interopRequireDefault(require("react"));
  _react = function () {
    return data;
  };
  return data;
}
function _designThemes() {
  const data = require("@teambit/design.themes.theme-toggler");
  _designThemes = function () {
    return data;
  };
  return data;
}
function _designTheme() {
  const data = require("@teambit/design.theme.icons-font");
  _designTheme = function () {
    return data;
  };
  return data;
}
function _baseUiLoaders() {
  const data = require("@teambit/base-ui.loaders.loader-ribbon");
  _baseUiLoaders = function () {
    return data;
  };
  return data;
}
function _baseUiThemeFonts() {
  const data = require("@teambit/base-ui.theme.fonts.roboto");
  _baseUiThemeFonts = function () {
    return data;
  };
  return data;
}
function _designUi() {
  const data = require("@teambit/design.ui.tooltip");
  _designUi = function () {
    return data;
  };
  return data;
}
function _uiFoundationUi() {
  const data = require("@teambit/ui-foundation.ui.global-loader");
  _uiFoundationUi = function () {
    return data;
  };
  return data;
}
function _clientContextModule() {
  const data = _interopRequireDefault(require("./client-context.module.scss"));
  _clientContextModule = function () {
    return data;
  };
  return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// import { Theme } from '@teambit/base-ui.theme.theme-provider';

function ClientContext({
  children
}) {
  const [loaderApi, isLoading] = (0, _uiFoundationUi().useLoaderApi)();
  return /*#__PURE__*/_react().default.createElement(_react().default.StrictMode, null, /*#__PURE__*/_react().default.createElement(_uiFoundationUi().LoaderContext.Provider, {
    value: loaderApi
  }, /*#__PURE__*/_react().default.createElement(_designTheme().IconFont, {
    query: "c7vhhb"
  }), /*#__PURE__*/_react().default.createElement(_designThemes().ThemeSwitcher, null, /*#__PURE__*/_react().default.createElement(_baseUiThemeFonts().Roboto, null), /*#__PURE__*/_react().default.createElement(_baseUiLoaders().LoaderRibbon, {
    active: isLoading,
    className: _clientContextModule().default.loader
  }), children, /*#__PURE__*/_react().default.createElement(_designUi().TooltipMountPoint, null))));
}

//# sourceMappingURL=client-context.js.map