import React from 'react'; import { View, Text, ScrollView, TouchableOpacity, StyleSheet } from 'react-native'; import { Playlist } from "../data/playlists" interface SidebarProps { playlists: Playlist[] } export function Sidebar({ playlists }: SidebarProps) { return ( Discover Listen Now Browse Radio Library Playlists Songs Made for You Artists Albums Playlists {playlists?.map((playlist, i) => ( {playlist} ))} ) } const styles = StyleSheet.create({ container: { padding: 12, }, section: { marginBottom: 20, }, sectionTitle: { fontSize: 18, fontWeight: 'bold', marginBottom: 10, }, buttonContainer: { marginLeft: 10, }, button: { paddingVertical: 8, }, buttonText: { fontSize: 16, }, playlistContainer: { maxHeight: 300, }, playlistButton: { paddingVertical: 8, }, playlistButtonText: { fontSize: 16, }, });