feat(components): extract anime studio links component

This commit is contained in:
2026-04-20 16:03:49 +02:00
parent 0385b0682d
commit 4dc059c612

View File

@@ -0,0 +1,18 @@
package anime
import (
"fmt"
"mal/integrations/jikan"
)
templ StudioLinks(studios []jikan.NamedEntity) {
for i, studio := range studios {
<a
href={ templ.URL(fmt.Sprintf("/studios/%d", studio.MalID)) }
class="hover:text-(--text) hover:underline"
>{ studio.Name }</a>
if i < len(studios)-1 {
<span>, </span>
}
}
}