"use client";
import { jsx as t, Fragment as m } from "react/jsx-runtime";
import { useFrame as a } from "../../hooks/use-frame.js";
import { useEffect as c } from "react";
import { useDragDropManager as d } from "../../../../../node_modules/.pnpm/react-dnd@16.0.1_@types_node@22.13.4_@types_react@19.0.10_react@19.0.0/node_modules/react-dnd/dist/hooks/useDragDropManager.js";
const g = ({ children: o }) => {
  const r = d(), { window: e, document: n } = a();
  return c(() => {
    r.getBackend().addEventListeners(e), window.frameWindow = e, window.frameDocument = n;
  }, [r, n, e]), /* @__PURE__ */ t(m, { children: o });
};
export {
  g as FrameContextManager
};
//# sourceMappingURL=frame-context-manager.js.map
