"use client";
import { createContext, useContext } from "react";
const ReactRuntimeContext = createContext(null);
function useReactRuntime() {
  const runtime = useContext(ReactRuntimeContext);
  if (runtime === null) {
    throw new Error("`useReactRuntime` must be used within a `ReactRuntimeProvider`");
  }
  return runtime;
}
export {
  ReactRuntimeContext,
  useReactRuntime
};
//# sourceMappingURL=use-react-runtime.js.map