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

// src/contexts/endpoints-runtime-context.tsx
var _react = require('react');
var EndpointsRuntimeContext = _react.createContext.call(void 0, null);
function useEndpointsRuntime() {
  return _react.useContext.call(void 0, EndpointsRuntimeContext);
}
function useRequiredEndpointsRuntime() {
  const v = _react.useContext.call(void 0, EndpointsRuntimeContext);
  if (!v) {
    throw new Error(
      "[endpoints-runtime] hook called outside an <EndpointsRuntimeContext.Provider>. Hub: mount <HubRuntimeProvider> in your providers tree. Embedded app: mount your own provider with proxied URLs at the tree root. Tests/Storybook: wrap render() in <EndpointsRuntimeContext.Provider value={mocked}>."
    );
  }
  return v;
}





exports.EndpointsRuntimeContext = EndpointsRuntimeContext; exports.useEndpointsRuntime = useEndpointsRuntime; exports.useRequiredEndpointsRuntime = useRequiredEndpointsRuntime;
//# sourceMappingURL=chunk-27APPAJN.cjs.map