diff --git a/src/App.tsx b/src/App.tsx index 35562b21..abbc0e35 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,6 @@ import { useState, useRef, useEffect } from 'react' import { useStore } from '@nanostores/react' +import { Square } from 'lucide-react' import { PlaybackManager } from './services/PlaybackManager' import { DownloadService } from './services/DownloadService' import { generateFormulaGrid, generateRandomFormula } from './utils/bytebeatFormulas' @@ -168,12 +169,30 @@ function App() { } } + const handleStop = () => { + playbackManagerRef.current?.stop() + setPlaying(null) + setQueued(null) + if (animationFrameRef.current) { + cancelAnimationFrame(animationFrameRef.current) + animationFrameRef.current = null + } + } + return (

BRUITISTE

+