()
| 15 | let iconColorByComponent: Map<StyleableIcon, string> | null = null |
| 16 | |
| 17 | function getIconColorMap(): Map<StyleableIcon, string> { |
| 18 | if (iconColorByComponent) return iconColorByComponent |
| 19 | const map = new Map<StyleableIcon, string>() |
| 20 | for (const block of getAllBlocks()) { |
| 21 | if (block.iconColor) map.set(block.icon, block.iconColor) |
| 22 | } |
| 23 | iconColorByComponent = map |
| 24 | return map |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Inline `style` for rendering a brand icon bare (without its colored tile |
no test coverage detected