package templates import ( "bookhoard/internal/handlers" "fmt" ) templ SeriesDetail(user User, seriesName string, books []handlers.BookInfo, currentLibraryID string, errorMessage string) { { seriesName } - Bookhoard @Header(user, "/series")
← All Series
📚 Series

{ seriesName }

{ fmt.Sprintf("%d", len(books)) } books
if len(books) > 0 {
for _, book := range books { @BookCard(book) }
} else {
📚

No Books Found

This series doesn't have any books in this library yet

}
@ErrorToast(errorMessage) }