diff --git a/src/pages/songpage.rs b/src/pages/songpage.rs index 9a584dc..13e6fc5 100644 --- a/src/pages/songpage.rs +++ b/src/pages/songpage.rs @@ -78,3 +78,15 @@ fn SongDetails(#[prop(into)] id: MaybeSignal) -> impl IntoView { } } + +#[component] +fn SongOverview(song: Song) -> impl IntoView { + view! { +
+

{song.title}

+

{format!("Artist: {}", song.artist)}

+

{format!("Album: {}", song.album.unwrap_or_else(|| "Unknown".to_string()))}

+

{format!("Duration: {}", song.duration)}

+
+ } +}