"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.WixPatternsDashboardProviderInternal = WixPatternsDashboardProviderInternal;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = require("@wix/fe-essentials/react");
var _dashboard = require("@wix/dashboard");
var _react2 = _interopRequireDefault(require("react"));
var _WixPatternsDashboardBaseProvider = require("./WixPatternsDashboardBaseProvider");
var _useEnvironment = require("./useEnvironment");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/dashboard/WixPatternsDashboardProviderInternal.tsx";
function WixPatternsDashboardProviderInternal(props) {
  const essentials = (0, _react.useEssentials)();
  const environment = (0, _useEnvironment.useEnvironment)();
  if (!environment) {
    return null;
  }
  return /*#__PURE__*/_react2.default.createElement(_WixPatternsDashboardBaseProvider.WixPatternsDashboardBaseProvider, (0, _extends2.default)({}, props, {
    dashboard: _dashboard.dashboard,
    environment: environment,
    essentials: essentials,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 5
    }
  }));
}
//# sourceMappingURL=WixPatternsDashboardProviderInternal.js.map