import React, { useState } from 'react'; const STEM_ICONS = { vocal: '🎀', backing_vocals: '🎢', drums: 'πŸ₯', bass: '🎸', guitar: '🎸', keyboard: '🎹', strings: '🎻', brass: '🎺', woodwinds: 'πŸͺˆ', percussion: 'πŸͺ˜', synth: 'πŸŽ›', fx: '✨', }; const StemModal = ({ stems, onClose }) => { const [playingStem, setPlayingStem] = useState(null); if (!stems || Object.keys(stems).length === 0) return null; return (
e.stopPropagation()}>

12 Stems

각 μŠ€ν…œμ„ κ°œλ³„ μž¬μƒ 및 λ‹€μš΄λ‘œλ“œν•  수 μžˆμŠ΅λ‹ˆλ‹€
{Object.entries(stems).map(([name, url]) => { if (!url) return null; const isPlaying = playingStem === name; return (
{STEM_ICONS[name] || '🎡'} {name.replace(/_/g, ' ')}
↓
{isPlaying && (
); })}
); }; export default StemModal;