import{useRef as r,useState as e,useEffect as t}from"react";let useTrackPreviewPause=i=>{let u=r(void 0),[a,n]=e(!1);return t(()=>{if(!a){if(!u.current){u.current=JSON.stringify({isFirstPreviewClicked:a,runPreview:i});return}a||u.current===JSON.stringify({isFirstPreviewClicked:a,runPreview:i})||n(!0)}},[a,i]),{isFirstPreviewClicked:a}};export{useTrackPreviewPause as default};
