import { Thermometer, Droplets, Wind, CloudOff } from "lucide-react"; import type { WeatherData } from "../api"; interface WeatherCardProps { data: WeatherData; accent: "cyan" | "amber"; } const ACCENT = { cyan: { strip: "gold", text: "text-gold", glow: "data-glow-gold", tag: "border-gold/30 text-gold bg-gold/5" }, amber: { strip: "mint", text: "text-mint", glow: "data-glow-mint", tag: "border-mint/30 text-mint bg-mint/5" }, } as const; export default function WeatherCard({ data, accent }: WeatherCardProps) { const a = ACCENT[accent]; if (data.error) { return (
Wetter nicht verfügbar
{data.location || "Unbekannt"}
{data.description}