"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react");const useTrackPreviewPause=e=>{let r=React.useRef(void 0),[t,u]=React.useState(!1);return React.useEffect(()=>{if(!t){if(!r.current){r.current=JSON.stringify({isFirstPreviewClicked:t,runPreview:e});return}t||r.current===JSON.stringify({isFirstPreviewClicked:t,runPreview:e})||u(!0)}},[t,e]),{isFirstPreviewClicked:t}};exports.default=useTrackPreviewPause;
