import { Label } from '@/components/ui/label'; import { Select } from '@/components/ui/select'; import { Slider } from '@/components/ui/slider'; import { Checkbox } from '@/components/ui/checkbox'; import { PlaybackSettings as PlaybackSettingsType } from '../types/settings'; // FE-PAGE-004: Complete Settings page implementation - Playback Settings interface PlaybackSettingsProps { playback: PlaybackSettingsType; onChange: (playback: PlaybackSettingsType) => void; } const audioQualities = [ { value: 'low', label: 'Low (64 kbps)' }, { value: 'medium', label: 'Medium (128 kbps)' }, { value: 'high', label: 'High (256 kbps)' }, { value: 'lossless', label: 'Lossless (FLAC)' }, ]; export function PlaybackSettings({ playback, onChange, }: PlaybackSettingsProps) { const handleQualityChange = (value: string | string[]) => { const qualityValue = Array.isArray(value) ? value[0] : value; onChange({ ...playback, quality: qualityValue as 'low' | 'medium' | 'high' | 'lossless', }); }; const handleVolumeChange = (value: number[]) => { onChange({ ...playback, volume: value[0], }); }; const handleCrossfadeChange = (value: number[]) => { onChange({ ...playback, crossfade: value[0], }); }; const handleAutoplayChange = (checked: boolean) => { onChange({ ...playback, autoplay: checked, }); }; return (