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 = () => {
if (audioElmRef.current) {
audioElmRef.current.play()
setPlayPause(true)
}
},
pause = () => {
if (audioElmRef.current) {
audioElmRef.current.pause()
setPlayPause(false)
}
},
loadData = () => {