import{r as c,j as e}from"./index-B-YXshIJ.js";import{u as p}from"./index-CH2fkwLD.js";import{T as f}from"./TeamsSelector-B2iYFGlP.js";import{A as j}from"./AppliedFilters-DL7_y5hs.js";import{Q as u}from"./QueryPeriodSelector-DeNVThh9.js";const v=({items:r,itemKey:a,loadNextPage:s,itemComponent:l})=>{const t=c.useRef(Date.now()),[m,o]=p({threshold:0,triggerOnce:!0,rootMargin:"100px"});return c.useEffect(()=>{o&&Date.now()-t.current>500&&(s(),t.current=Date.now())},[o,s]),e.jsx("ul",{children:r.map((i,n)=>e.jsx("li",{...n===r.length-1?{ref:m}:{},children:e.jsx(l,{item:i,index:n})},a(i)))})},x=({children:r})=>e.jsxs(e.Fragment,{children:[e.jsx(f,{}),e.jsx(j,{}),e.jsxs("div",{className:"grid grid-cols-2 items-center my-6",children:[e.jsx("div",{className:"ml-1",children:r}),e.jsx("div",{className:"justify-self-end",children:e.jsx(u,{})})]})]}),y=x;export{v as I,y as P};
