{"ast":null,"code":"var _s = $RefreshSig$();\nimport { useEffect } from 'react';\nfunction useCanvasUpdatePitch(isPlaying, pitch, updateBallY) {\n  _s();\n  useEffect(() => {\n    if (isPlaying) {\n      if (pitch !== null) {\n        updateBallY(pitch);\n      }\n    }\n  }, [pitch]);\n}\n_s(useCanvasUpdatePitch, \"OD7bBpZva5O2jO+Puf00hKivP7c=\");\nexport default useCanvasUpdatePitch;","map":{"version":3,"names":["useEffect","useCanvasUpdatePitch","isPlaying","pitch","updateBallY","_s"],"sources":["/var/www/gavt/src/hooksUseEffect/useCanvasUpdatePitch.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nfunction useCanvasUpdatePitch(isPlaying:boolean,pitch:number|null, updateBallY: (num:number) => void) {\n    useEffect(() => {\n        if (isPlaying) {\n            if (pitch !== null) {\n                updateBallY(pitch);\n\n            }\n        }\n      }, [pitch]);\n}\n\n\nexport default useCanvasUpdatePitch;"],"mappings":";AAAA,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,oBAAoBA,CAACC,SAAiB,EAACC,KAAiB,EAAEC,WAAiC,EAAE;EAAAC,EAAA;EAClGL,SAAS,CAAC,MAAM;IACZ,IAAIE,SAAS,EAAE;MACX,IAAIC,KAAK,KAAK,IAAI,EAAE;QAChBC,WAAW,CAACD,KAAK,CAAC;MAEtB;IACJ;EACF,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;AACjB;AAACE,EAAA,CATQJ,oBAAoB;AAY7B,eAAeA,oBAAoB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}