"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');

// src/client/context/JsonApiContext.ts
var _react = require('react');
var JsonApiContext = _react.createContext.call(void 0, null);
function useJsonApiConfig() {
  const config = _react.useContext.call(void 0, JsonApiContext);
  if (!config) {
    throw new Error("useJsonApiConfig must be used within a JsonApiProvider");
  }
  return config;
}
_chunk7QVYU63Ejs.__name.call(void 0, useJsonApiConfig, "useJsonApiConfig");
function useJsonApiConfigOptional() {
  return _react.useContext.call(void 0, JsonApiContext);
}
_chunk7QVYU63Ejs.__name.call(void 0, useJsonApiConfigOptional, "useJsonApiConfigOptional");





exports.JsonApiContext = JsonApiContext; exports.useJsonApiConfig = useJsonApiConfig; exports.useJsonApiConfigOptional = useJsonApiConfigOptional;
//# sourceMappingURL=chunk-3EPNHTMH.js.map