import{j as o,r as i,h as u,S as f}from"./vendor-ClLR6ncd.js";import{W as x,a as d}from"./WithMeasure-BDk9QPMF.js";const l=(t,{id:e})=>e,a={List:i.forwardRef(function({style:e,children:r,...n},s){return o.jsx(f,{ref:s,...n,direction:"row",flexWrap:"wrap",gap:1,style:e,children:r})})};function W(){return o.jsx(u,{pt:2,color:"text.secondary",align:"center",children:"Loading more..."})}const g={...a,Footer:W};function h({height:t,virtuosoRef:e,data:r,isFetchingNextPage:n,computeItemKey:s=l,itemContent:c,endReached:p}){const m=i.useMemo(()=>({height:t}),[t]);return o.jsx(d,{ref:e,style:m,data:r,components:n?g:a,computeItemKey:s,itemContent:c,endReached:p})}function S(t){return o.jsx(x,{Component:h,...t})}export{S as I,l as d};
