import { useEffect as f } from "react";
const u = (n, d, r = !1, e = document) => {
  f(() => {
    if (!(!e || !e.addEventListener))
      return e.addEventListener(n, d, r), () => {
        e.removeEventListener(n, d, r);
      };
  }, [n, r, e]);
};
export {
  u as default
};
//# sourceMappingURL=useEvent.js.map
