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

Function CustomLandUseTooltip

src/components/WeatherView.tsx:84–96  ·  view source on GitHub ↗
({ active, payload }: any)

Source from the content-addressed store, hash-verified

82 return builtUp >= 30;
83}
84
85const CustomLandUseTooltip = ({ active, payload }: any) => {
86 if (!active || !payload?.length) return null;
87 const { name, value, color } = payload[0].payload;
88 return (
89 <div className="rounded-lg px-3 py-2 shadow-xl border border-border/50" style={{ background: "hsl(150, 18%, 12%)" }}>
90 <div className="flex items-center gap-2 mb-1">
91 <span className="w-2.5 h-2.5 rounded-sm" style={{ backgroundColor: color }} />
92 <span className="text-xs font-semibold" style={{ color }}>{name}</span>
93 </div>
94 <div className="text-sm font-bold text-foreground">{value}%</div>
95 </div>
96 );
97};
98
99const CustomChartTooltip = ({ active, payload, label }: any) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected