import{r as o,j as i}from"./vendor-react-wBh_31cN.js";const c=(s,r)=>{const e=o.useRef(null);return o.useEffect(()=>{const n=new IntersectionObserver(([t])=>{typeof t.isIntersecting=="boolean"&&r(t.isIntersecting)},{rootMargin:s});return e!=null&&e.current&&n.observe(e.current),()=>{e!=null&&e.current&&n.disconnect()}},[r,s]),e},f=({rootMargin:s="0px",onLoadMore:r})=>{const e=c(s,n=>{n&&r()});return i.jsx("div",{ref:e,className:"invisible flex",children:"INVISIBLE"})};export{f as H,c as u};
