import React, { useRef, useState } from "react";
import "./SentenceDiaryDeepLearning.css";
const SentenceDiaryDeepLearning = ({ contents }) => {
// 오디오 요소를 위한 ref 생성
const audioRef = useRef(null);
// 이미지 클릭 시 오디오 재생
const playAudio = () => {
if (audioRef.current) {
audioRef.current.play();
}
};
return (
<>
{/* 숨겨진 오디오 요소 추가 */}