import{slicedToArray as e}from"../_virtual/_rollupPluginBabelHelpers.js";import{useState as r,useRef as t,useEffect as n}from"react";function o(){var o=r(!1),u=e(o,2),i=u[0],s=u[1],a=t(null),v=function(){return s(!0)},l=function(){return s(!1)};return n((function(){var e=a.current;if(e)return e.addEventListener("mouseover",v),e.addEventListener("mouseout",l),function(){e.removeEventListener("mouseover",v),e.removeEventListener("mouseout",l)}}),[a.current]),[a,i]}export{o as default};
