import { useMemo as t } from "react";
import { useDragDropManager as n } from "../useDragDropManager.es.js";
import { useIsomorphicLayoutEffect as c } from "../useIsomorphicLayoutEffect.es.js";
import { TargetConnector as a } from "../../internals/TargetConnector.es.js";
function s(o) {
  const e = n(), r = t(
    () => new a(e.getBackend()),
    [
      e
    ]
  );
  return c(() => (r.dropTargetOptions = o || null, r.reconnect(), () => r.disconnectDropTarget()), [
    o
  ]), r;
}
export {
  s as useDropTargetConnector
};
//# sourceMappingURL=useDropTargetConnector.es.js.map
