import type { LiveWeatherData } from '../../types' import { windDirectionLabel } from '../../lib/live' interface Props { weather: LiveWeatherData | null | undefined } export function WeatherStrip({ weather }: Props) { if (!weather) return null const hasData = weather.AirTemp > 0 || weather.TrackTemp > 0 || weather.Humidity > 0 || weather.WindSpeed > 0 || weather.Rainfall if (!hasData) return null const windDir = windDirectionLabel(weather.WindDir) return (