MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / getAqiLabel

Function getAqiLabel

src/components/WeatherView.tsx:69–76  ·  view source on GitHub ↗
(aqi: number)

Source from the content-addressed store, hash-verified

67};
68
69function getAqiLabel(aqi: number): { label: string; color: string } {
70 if (aqi <= 20) return { label: "Good", color: CHART_GREEN };
71 if (aqi <= 40) return { label: "Fair", color: "#CDDC39" };
72 if (aqi <= 60) return { label: "Moderate", color: CHART_GOLD };
73 if (aqi <= 80) return { label: "Poor", color: "#FF9800" };
74 if (aqi <= 100) return { label: "Very Poor", color: "#d73027" };
75 return { label: "Hazardous", color: "#7B1FA2" };
76}
77
78function isUrbanRegion(landUseData: any): boolean {
79 if (!landUseData) return false;

Callers 1

WeatherViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected