import{cD as c,aJ as r,ao as t,by as o,a_ as f,av as l,b7 as x}from"./app-k0jcl5PQ.js";const h="_container_1kfhe_1",u="_spinner_1kfhe_4",a={container:h,spinner:u};g.defaultProps={fetchOnScroll:!1};function g(e){const[s,i]=c();return r.useEffect(()=>{var n;e.fetchOnScroll&&(!i||e.isFetching||(n=e.fetchNext)==null||n.call(e,e.nextCursor))},[i,e.isFetching]),t.jsx("div",{className:`p-3 text-center ${a.container}`,children:e.isFetching?t.jsx(o,{as:"span",animation:"border",role:"status",className:a.spinner}):t.jsx("div",{ref:s,children:t.jsx(f,{svg:x,className:"svg-container cursor-pointer",size:l.Large,onClick:()=>{var n;return(n=e.fetchNext)==null?void 0:n.call(e,e.nextCursor)}})})})}export{g as I};
//# sourceMappingURL=DXJ2-V8v.chunk.js.map
