Add artist <section>

This commit is contained in:
Jakob Moser 2025-11-13 19:42:07 +01:00
parent 008ec35176
commit 30b9bdf37c
Signed by: jakob
GPG Key ID: 3EF2BA2851B3F53C

View File

@ -0,0 +1,14 @@
import Song from "./Song.js"
export default {
view: function (vnode) {
const { artist, songs } = vnode.attrs
return m(
"section.artist",
[
m("h2", artist),
songs.map(song => m(Song, { song })),
],
)
},
}