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