(items []PricingDisplayItem)
| 1063 | } |
| 1064 | |
| 1065 | func countByProvider(items []PricingDisplayItem) map[string]int { |
| 1066 | counts := make(map[string]int) |
| 1067 | for _, item := range items { |
| 1068 | parts := strings.SplitN(item.Product, " ", 2) |
| 1069 | if len(parts) > 0 && parts[0] != "" { |
| 1070 | counts[strings.ToLower(parts[0])]++ |
| 1071 | } |
| 1072 | } |
| 1073 | return counts |
| 1074 | } |
| 1075 | |
| 1076 | func (v *PricingView) renderResults(active bool, minHeight int) string { |
| 1077 | isFocused := active && v.ActiveSection == PricingSectionResults |