import { View, Text, ScrollView, TouchableOpacity, FlatList } from 'react-native' import { useRouter } from 'expo-router' import { usePlayerStore } from '../src/store/playerStore' import { BottomNavBar } from '../src/components/BottomNavBar' const SONGS = [ { id: '1', title: 'Song One', duration: 234 }, { id: '2', title: 'Song Two', duration: 198 }, { id: '3', title: 'Song Three', duration: 267 }, { id: '4', title: 'Song Four', duration: 312 }, { id: '5', title: 'Song Five', duration: 189 }, ] const PLAYLISTS = [ { id: '1', name: 'Chill Vibes' }, { id: '2', name: 'Workout' }, { id: '3', name: 'Road Trip' }, { id: '4', name: 'Late Night' }, { id: '5', name: 'Focus' }, ] export default function PlaylistScreen() { const router = useRouter() const isPlaying = usePlayerStore(s => s.isPlaying) const togglePlay = usePlayerStore(s => s.togglePlay) return ( router.push('/library' as any)}> {PLAYLISTS.map((pl, i) => ( ))} {isPlaying ? '⏸' : '▶️'} Chill Vibes 📢 {SONGS.map((song) => ( {song.title} {Math.floor(song.duration / 60)}:{(song.duration % 60).toString().padStart(2, '0')} ))} ) }