import { useDragDropManager as n } from "../useDragDropManager.js";
import { useIsomorphicLayoutEffect as g } from "../useIsomorphicLayoutEffect.js";
import { useDragSource as m } from "./useDragSource.js";
import { useDragType as f } from "./useDragType.js";
import { registerSource as c } from "../../internals/registration.js";
function h(t, r, e) {
  const u = n(), a = m(t, r, e), o = f(t);
  g(function() {
    if (o != null) {
      const [i, s] = c(o, a, u);
      return r.receiveHandlerId(i), e.receiveHandlerId(i), s;
    }
  }, [
    u,
    r,
    e,
    a,
    o
  ]);
}
export {
  h as useRegisteredDragSource
};
//# sourceMappingURL=useRegisteredDragSource.js.map
