import{useCallback as r,useMemo as e}from"react";import{useCarousel as t}from"./useCarousel.js";let l=l=>{let{productImages:u,itemPerRow:n,vertical:s}=l,{moveToIdx:i}=t(),o=r(()=>{let r=[...u];return r?.splice(i,n)},[u,n,i]),f=e(()=>{let r=o();if(r.length>=n)return r;if(s)return[...u];let e=[...u],t=n-r.length;return e.push(...Array(t).fill(null)),e},[o,n,u,s]);return{listRender:f}};export{l as useListCarousel};
