import { Box, Flex, Text } from "@chakra-ui/react"; import { Song } from "../types/interfaces"; import { ChangeEvent } from "react"; interface SongListProps { songs: Song[]; onAddToPlaylist: (songId: string, playlistName: string) => void; playlists: { name: string }[]; } export const SongList: React.FC = ({ songs, onAddToPlaylist, playlists }) => { return ( {songs.map((song) => ( {song.title} {song.artist} ))} ); };