"use strict";var e=require("@gem-sdk/core"),r=require("react");exports.useMarquee=({children:t,isPause:u,isPreview:o,rate:i=0,speed:s=0})=>{let d=e.useEditorMode(),M=r.useMemo(()=>r.Children.count(e.filterToolbarPreview(t)),[t]),a=r.useMemo(()=>"edit"!==d||!u&&(!!o||"edit"!==d||i>0),[i,o,d,u]),c=r.useMemo(()=>a?(s??0)*100:i,[i,a,s]);return{itemSize:M,isPlay:a,rateUse:c}};
