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