diff --git a/web/components/watchlist/dropdown.templ b/web/components/watchlist/dropdown.templ new file mode 100644 index 0000000..78b97d1 --- /dev/null +++ b/web/components/watchlist/dropdown.templ @@ -0,0 +1,63 @@ +package watchlist + +import "fmt" + +templ WatchlistDropdown(animeID int, animeTitle string, animeTitleEnglish string, animeTitleJapanese string, animeImage string, currentStatus string, airing bool) { +
+ + +
+} + +templ StatusOption(animeID int, animeTitle string, animeTitleEnglish string, animeTitleJapanese string, animeImage string, status string, currentStatus string, airing bool) { + +} + +func formatStatus(status string) string { + switch status { + case "watching": + return "Watching" + case "completed": + return "Completed" + case "on_hold": + return "On hold" + case "dropped": + return "Dropped" + case "plan_to_watch": + return "Plan to watch" + default: + return status + } +}