import { o as c } from "./rolldown-runtime.js";
import { i as u } from "./vendor/react.js";
var r = /* @__PURE__ */ c(u(), 1);
function a(t) {
  const e = r.createContext(null);
  e.displayName = t;
  function n() {
    const o = r.useContext(e);
    if (!o) throw new Error(`${t} compound components must be used within <${t}>`);
    return o;
  }
  return [e, n];
}
export {
  a as t
};

//# sourceMappingURL=create-safe-context.js.map