package components import ( "fmt" "reichard.io/antholume/ngtemplates/common" ) templ LeaderboardCard(name string, stats map[string][]common.UserStatisticEntry) {

{ name } Leaderboard

for name, data := range stats {
if len(data) == 0 {

N/A

} else {

{ data[0].UserID }

}
for idx, item := range data { if idx == 0 {

{ item.UserID }

{ item.Value }
} else if idx < 3 {

{ item.UserID }

{ item.Value }
} }
}
}