import { useDragDropManager as s } from "../useDragDropManager.es.js";
import { useIsomorphicLayoutEffect as c } from "../useIsomorphicLayoutEffect.es.js";
import { useAccept as m } from "./useAccept.es.js";
import { useDropTarget as u } from "./useDropTarget.es.js";
import { registerTarget as f } from "../../internals/registration.es.js";
function h(e, r, t) {
  const o = s(), a = u(e, r), i = m(e);
  c(function() {
    const [g, n] = f(i, a, o);
    return r.receiveHandlerId(g), t.receiveHandlerId(g), n;
  }, [
    o,
    r,
    a,
    t,
    i.map(
      (p) => p.toString()
    ).join("|")
  ]);
}
export {
  h as useRegisteredDropTarget
};
//# sourceMappingURL=useRegisteredDropTarget.es.js.map
