2019-10-26 09:06:14 +00:00
|
|
|
component StatusTabs(urlPrefix string, statusLists map[string]*arn.AnimeList)
|
2017-10-02 12:56:51 +00:00
|
|
|
.tabs
|
2019-10-26 09:06:14 +00:00
|
|
|
TabWithCount("Watching", len(statusLists[arn.AnimeListStatusWatching].Items), "play", urlPrefix + "/watching")
|
|
|
|
TabWithCount("Completed", len(statusLists[arn.AnimeListStatusCompleted].Items), "check", urlPrefix + "/completed")
|
|
|
|
TabWithCount("Planned", len(statusLists[arn.AnimeListStatusPlanned].Items), "forward", urlPrefix + "/planned")
|
|
|
|
TabWithCount("On Hold", len(statusLists[arn.AnimeListStatusHold].Items), "pause", urlPrefix + "/hold")
|
|
|
|
TabWithCount("Dropped", len(statusLists[arn.AnimeListStatusDropped].Items), "stop", urlPrefix + "/dropped")
|