import { deleteSong, listSongs } from "./actions"; import DeleteSongButton from "./delete-song-button"; import SearchForm from "./search-form"; export default async function Page() { const songs = await listSongs(); return (

已收藏

    {songs.map((song, i) => (
  • {song.name} - {song.artist}
  • ))}

搜索

); }