import { Image } from '@mantine/core';
import CloudyIcon from '../../assets/weather/cloudy.svg';
import HazeIcon from '../../assets/weather/haze.svg';
import HeavyRainIcon from '../../assets/weather/heavy-rain.svg';
import PartlyCloudyIcon from '../../assets/weather/partly-cloudy.svg';
import RainIcon from '../../assets/weather/rain.svg';
import SleetIcon from '../../assets/weather/sleet.svg';
import SnowIcon from '../../assets/weather/snow.svg';
import SunnyIcon from '../../assets/weather/sunny.svg';
import ThunderstormIcon from '../../assets/weather/thunderstorm.svg';
import WindyIcon from '../../assets/weather/windy.svg';
export default function WeatherIcon({ textDescription }: { textDescription: string }) {
const icon = textDescription.includes('then')
? textDescription.substring(0, textDescription.trim().indexOf('then'))
: textDescription;
const Icon = () => {
switch (icon.trim()) {
case 'Ash':
return (
);
case 'Broken Clouds':
return (
);
case 'Chance Rain Showers':
return (
);
case 'Chance Showers':
return (
);
case 'Slight Chance Showers':
return (
);
case 'Clear':
return (
);
case 'Cloudy':
return (
);
case 'Dust':
return (
);
case 'Drizzle':
return (
);
case 'Fog':
return (
);
case 'Freezing Rain':
return (
);
case 'Haze':
return (
);
case 'Heavy Rain':
return (
);
case 'Heavy Snow':
return (
);
case 'Light Rain':
return (
);
case 'Mist':
return (
);
case 'Moderate Rain':
return (
);
case 'Mostly Cloudy':
return (
);
case 'Overcast Clouds':
return (
);
case 'Patchy Fog':
return (
);
case 'Partly Sunny':
return (
);
case 'Rain':
return (
);
case 'Scattered Clouds':
return (
);
case 'Showers':
return (
);
case 'Sleet':
return (
);
case 'Smoke':
return (
);
case 'Snow':
return (
);
case 'Squall':
return (
);
case 'Thunderstorm':
return (
);
case 'Tornado':
return (
);
default:
return (
);
}
};
return ;
}