import React from 'react';
import {
Cloud,
CloudDrizzle,
CloudFog,
CloudLightning, CloudMoon,
CloudRain,
CloudSnow,
CloudSun,
MapPin, Moon, Sun,
ThermometerSun
} from 'lucide-react';
import { formatTemperature } from "@/lib/utils";
import { useWeatherStore } from '@/store/weatherStore';
interface WeatherIconProps {
description: string;
isDay: string;
className?: string;
}
/**
* Returns the appropriate weather icon based on description and time of day
*/
function WeatherIcon({ description, isDay, className = "w-16 h-16 md:w-20 md:h-20" }: WeatherIconProps) {
const desc = description.toLowerCase();
const isDaytime = isDay === 'yes';
if (desc.includes('rain') || desc.includes('雨')) {
return desc.includes('heavy') || desc.includes('暴')
?
{currentWeather.current.weather_descriptions[0]}