text: "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 _pageRenderer = _interopRequireDefault(require("./page-renderer"));
  
  const ProdPageRenderer = ({ location }) => {
    const pageResources = _loader.default.loadPageSync(location.pathname);
  
    if (!pageResources) {
      return null;
    }
  
    return /*#__PURE__*/ _react.default.createElement(_pageRenderer.default, {
      location,
      pageResources,
      ...pageResources.json,
    });
  };
  
  ProdPageRenderer.propTypes = {
    location: _propTypes.default.shape({
      pathname: _propTypes.default.string.isRequired,
    }).isRequired,
  };
  var _default = ProdPageRenderer;
  exports.default = _default;
  