"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.withDashboard = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _DashboardContext = require("./DashboardContext");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/core/dist/cjs/providers/withDashboard.tsx";
const withDashboard = PageComponent => {
  return props => /*#__PURE__*/_react.default.createElement(_DashboardContext.DashboardProvider, {
    location: props.location,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 9,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(PageComponent, (0, _extends2.default)({}, props, {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 7
    }
  })));
};
exports.withDashboard = withDashboard;
//# sourceMappingURL=withDashboard.js.map