Function
getSectorColor
(
sector: MapSector,
bySector: boolean | undefined,
trackColor: string | undefined = "stroke-white",
yellowSectors: Set<number>,
)
Source from the content-addressed store, hash-verified
| 123 | }; |
| 124 | |
| 125 | export const getSectorColor = ( |
| 126 | sector: MapSector, |
| 127 | bySector: boolean | undefined, |
| 128 | trackColor: string | undefined = "stroke-white", |
| 129 | yellowSectors: Set<number>, |
| 130 | ) => (bySector ? (yellowSectors.has(sector.number) ? trackColor : "stroke-white") : trackColor); |
Tested by
no test coverage detected