"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.default = void 0;

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

var _propTypes = _interopRequireDefault(require("prop-types"));

var _loader = _interopRequireDefault(require("./loader"));

var _queryResultStore = require("./query-result-store");

const DevPageRenderer = ({
  location
}) => {
  const pageResources = _loader.default.loadPageSync(location.pathname);

  return /*#__PURE__*/_react.default.createElement(_queryResultStore.PageQueryStore, {
    location,
    pageResources
  });
};

DevPageRenderer.propTypes = {
  location: _propTypes.default.shape({
    pathname: _propTypes.default.string.isRequired
  }).isRequired
};
var _default = DevPageRenderer;
exports.default = _default;