import { useDragDropManager as n } from "../useDragDropManager.es.js";
import { useIsomorphicLayoutEffect as g } from "../useIsomorphicLayoutEffect.es.js";
import { useDragSource as m } from "./useDragSource.es.js";
import { useDragType as f } from "./useDragType.es.js";
import { registerSource as c } from "../../internals/registration.es.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.es.js.map
