setPlayPause

Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2025-05-19 16:56:13 +02:00
parent 479c394c50
commit e2a47c22d0
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81

View File

@ -33,11 +33,13 @@ const App = () => {
play = () => { play = () => {
if (audioElmRef.current) { if (audioElmRef.current) {
audioElmRef.current.play() audioElmRef.current.play()
setPlayPause(true)
} }
}, },
pause = () => { pause = () => {
if (audioElmRef.current) { if (audioElmRef.current) {
audioElmRef.current.pause() audioElmRef.current.pause()
setPlayPause(false)
} }
}, },
loadData = () => { loadData = () => {