import{slicedToArray as e}from"../_virtual/_rollupPluginBabelHelpers.js";import{useState as r,useCallback as t}from"react";import a from"./useEventListener/index.js";function n(n){var o=n.ref,l=r(!1),u=e(l,2),i=u[0],c=u[1],f=t((function(e){c(e.target===(o&&o.current))}),[c,o]),m=t((function(){return c(!1)}),[c]);return a({eventName:"mouseenter",callback:f,ref:o}),a({eventName:"mouseleave",callback:m,ref:o}),i}export{n as default};
