import { $ } from "./useEffectEvent-B4Fd4l1o.es.js";
import { useEffect as l } from "react";
function m(e, t, a, r) {
  let f = $(a), c = a == null;
  l(() => {
    if (c || !e.current) return;
    let n = e.current;
    return n.addEventListener(t, f, r), () => {
      n.removeEventListener(t, f, r);
    };
  }, [
    e,
    t,
    r,
    c
  ]);
}
export {
  m as $
};
//# sourceMappingURL=useEvent-CKoH5wGJ.es.js.map
