import { o as e } from "./rolldown-runtime.js";
import { i as a } from "./vendor/react.js";
import { s as i } from "./useRenderElement.js";
var r = /* @__PURE__ */ e(a()), n = /* @__PURE__ */ r.createContext(void 0);
function f(t) {
  const o = r.useContext(n);
  if (o === void 0 && !t) throw new Error(i(69));
  return o;
}
export {
  f as t
};

//# sourceMappingURL=ToolbarRootContext.js.map