import { memo as o, useEffect as f } from "react";
const a = o(function({ connect: r, src: t }) {
  return f(() => {
    if (typeof Image > "u") return;
    let n = !1;
    const e = new Image();
    return e.src = t, e.onload = () => {
      r(e), n = !0;
    }, () => {
      n && r(null);
    };
  }), null;
});
export {
  a as DragPreviewImage
};
//# sourceMappingURL=DragPreviewImage.js.map
