import React, { useState } from "react"; import "./WordBundleDeepLearning.css"; const WordBundleDeepLearning = ({ 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
Loading...
; } return ( <> 이미지

{contents.sentence}

{contents.sentence_meaning}

); }; export default WordBundleDeepLearning;