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