hooks-client-context.js 1.3 KB

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.LayoutSegmentsContext = exports.ParamsContext = exports.PathnameContext = exports.SearchParamsContext = void 0;
  6. var _react = require("react");
  7. const SearchParamsContext = (0, _react).createContext(null);
  8. exports.SearchParamsContext = SearchParamsContext;
  9. const PathnameContext = (0, _react).createContext(null);
  10. exports.PathnameContext = PathnameContext;
  11. const ParamsContext = (0, _react).createContext(null);
  12. exports.ParamsContext = ParamsContext;
  13. const LayoutSegmentsContext = (0, _react).createContext(null);
  14. exports.LayoutSegmentsContext = LayoutSegmentsContext;
  15. if (process.env.NODE_ENV !== 'production') {
  16. SearchParamsContext.displayName = 'SearchParamsContext';
  17. PathnameContext.displayName = 'PathnameContext';
  18. ParamsContext.displayName = 'ParamsContext';
  19. LayoutSegmentsContext.displayName = 'LayoutSegmentsContext';
  20. }
  21. if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
  22. Object.defineProperty(exports.default, '__esModule', { value: true });
  23. Object.assign(exports.default, exports);
  24. module.exports = exports.default;
  25. }
  26. //# sourceMappingURL=hooks-client-context.js.map