import{useEffect as n}from"react";function r(n,r,t,e){return n.addEventListener(r,t,e),function(){return n.removeEventListener(r,t,e)}}function t(t,e,i,o){n((function(){var n=t.current;if(i&&n)return r(n,e,i,o)}),[t,e,i,o])}export{r as addDomEvent,t as useDomEvent};
//# sourceMappingURL=use-dom-event.js.map
