import{useEditorMode as e,filterToolbarPreview as r}from"@gem-sdk/core";import{useMemo as t,Children as o}from"react";let m=({children:m,isPause:i,isPreview:u,rate:c=0,speed:d=0})=>{let p=e(),a=t(()=>o.count(r(m)),[m]),f=t(()=>"edit"!==p||!i&&(!!u||"edit"!==p||c>0),[c,u,p,i]),l=t(()=>f?(d??0)*100:c,[c,f,d]);return{itemSize:a,isPlay:f,rateUse:l}};export{m as useMarquee};
