import { useState as o, useEffect as n } from "react";
const a = (r) => {
  const [s, t] = o(!1), e = () => t(!0), u = () => t(!1);
  return n(() => (r.current && r.current.addEventListener("mouseenter", e), () => {
    r.current && r.current.removeEventListener("mouseenter", e);
  }), [r.current]), n(() => (r.current && r.current.addEventListener("mouseleave", u), () => {
    r.current && r.current.removeEventListener("mouseleave", u);
  }), [r.current]), s;
};
export {
  a as default
};
//# sourceMappingURL=useHover.js.map
