import { View, Text, TouchableOpacity, ScrollView } from 'react-native' import { useRouter } from 'expo-router' import { BottomNavBar } from '../src/components/BottomNavBar' import { useState } from 'react' const TABS = [ { id: 'playlist', label: 'Playlist' }, { id: 'mood-playlist', label: 'Mood Playlist' }, { id: 'radio', label: 'Radio' }, { id: 'collab', label: 'Collab' }, ] export default function CreateScreen() { const [activeTab, setActiveTab] = useState(TABS[0].id) return ( Create {TABS.map((tab) => ( setActiveTab(tab.id)} className={`px-4 py-2 rounded-full ${activeTab === tab.id ? 'bg-music-accent' : 'bg-music-card'}`} > {tab.label} ))} {TABS.find(t => t.id === activeTab)?.label} ) }