import React, { useState } from "react"; import "./WordBundleBasicLearning.css"; const WordBundleBasicLearning = ({ contents }) => { const [isPlaying, setIsPlaying] = useState(false); const toggleAudio = () => { const audio = document.getElementById("song-audio"); if (isPlaying) { audio.pause(); } else { audio.play(); } setIsPlaying(!isPlaying); }; if (!contents) { return