diff --git a/src/pages/artist.rs b/src/pages/artist.rs
index b7ff17a..6c42640 100644
--- a/src/pages/artist.rs
+++ b/src/pages/artist.rs
@@ -87,3 +87,33 @@ fn ArtistDetails(artist: Artist) -> impl IntoView {
}
}
+
+#[component]
+fn TopSongsByArtist(#[prop(into)] artist_id: MaybeSignal) -> impl IntoView {
+ let top_songs = create_resource(move || artist_id.get(), |artist_id| async move {
+ top_songs_by_artist(artist_id, Some(10)).await
+ });
+
+ view! {
+ "Top Songs"
+ }
+ >
+ {e.to_string()}
})
+ .collect_view()
+ }
+ }
+ >
+ {move || top_songs.get().map(|top_songs| {
+ top_songs.map(|top_songs| {
+ view! { }
+ })
+ })}
+
+
+ }
+}