feat: build production-ready wtr weather PWA
This commit is contained in:
14
components/weather/weather-icon.tsx
Normal file
14
components/weather/weather-icon.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { CloudRain, CloudSun, MoonStar, Snowflake, Sun, Wind } from "lucide-react";
|
||||
import type { WeatherMood } from "@/types/imgw";
|
||||
|
||||
export function WeatherIcon({ mood, className = "" }: { mood: WeatherMood; className?: string }) {
|
||||
const Icon = {
|
||||
clear: Sun,
|
||||
rain: CloudRain,
|
||||
wind: Wind,
|
||||
cold: Snowflake,
|
||||
night: MoonStar,
|
||||
mild: CloudSun,
|
||||
}[mood];
|
||||
return <Icon className={className} strokeWidth={1.35} />;
|
||||
}
|
||||
Reference in New Issue
Block a user