15 lines
453 B
TypeScript
15 lines
453 B
TypeScript
import { Cloud, CloudSun, MoonStar, Snowflake, ThermometerSun, Wind } from "lucide-react";
|
|
import type { WeatherMood } from "@/types/imgw";
|
|
|
|
export function WeatherIcon({ mood, className = "" }: { mood: WeatherMood; className?: string }) {
|
|
const Icon = {
|
|
warm: ThermometerSun,
|
|
cloudy: Cloud,
|
|
wind: Wind,
|
|
cold: Snowflake,
|
|
night: MoonStar,
|
|
mild: CloudSun,
|
|
}[mood];
|
|
return <Icon className={className} strokeWidth={1.35} />;
|
|
}
|