"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.default=(r={})=>{let[t,s]=e.useState(!1),u=e.useRef(null);return e.useEffect(()=>{let e=new IntersectionObserver(e=>{let[r]=e;r&&(r.isIntersecting?s(!0):s(!1))},{...r}),{current:t}=u;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[r]),[u,t]};
