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