import React from 'react'; import { X, Gauge } from 'lucide-react'; import { useAudio } from '../../context/AudioContext'; interface PlaybackSpeedModalProps { onClose: () => void; } export const PlaybackSpeedModal: React.FC = ({ onClose, }) => { const { playbackRate, setPlaybackRate, pitchCorrection, togglePitchCorrection, } = useAudio(); const presets = [0.5, 0.75, 1.0, 1.25, 1.5, 2.0]; return (

Playback Speed

{/* Slider */}
0.5x {playbackRate}x 2.0x
setPlaybackRate(parseFloat(e.target.value))} className="w-full h-1.5 bg-kodo-steel rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:bg-kodo-gold [&::-webkit-slider-thumb]:rounded-full" />
{/* Presets */}
{presets.map((rate) => ( ))}
{/* Pitch Correction */}
Pitch Correction Maintain key when changing speed
); };