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