package main // statsContainerComponent renders the stats grid container with pre-rendered children. templ statsContainerComponent(childCount int, childrenHTML string) {
@templ.Raw(childrenHTML)
} // statsEmptyComponent renders an empty placeholder for stats without items. templ statsEmptyComponent() {

Click + to add stat items

} // statsComponent renders a Gotham-styled stats counter grid (legacy content-based). templ statsComponent(items []StatItem) {
for _, stat := range items {
if stat.Icon != "" {
@iconSVG(stat.Icon)
}
{ stat.Value }
{ stat.Label }
}
} // gridCols returns the appropriate grid column class based on item count. func gridCols(count int) string { switch count { case 1: return "grid-cols-1" case 2: return "grid-cols-1 md:grid-cols-2" case 3: return "grid-cols-1 md:grid-cols-3" default: return "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" } } // iconSVG renders a simple icon based on name. templ iconSVG(name string) { switch name { case "chart": case "users": case "clock": case "star": default: } }