8 lines
252 B
React
Raw Normal View History

import mapIcon from "utils/weather/condition-map";
2022-08-24 10:44:35 +03:00
export default function Icon({ condition, timeOfDay }) {
2022-09-07 16:53:24 +03:00
const IconComponent = mapIcon(condition, timeOfDay);
2022-08-24 10:44:35 +03:00
2022-09-07 16:53:24 +03:00
return <IconComponent className="w-10 h-10 text-theme-800 dark:text-theme-200" />;
2022-08-24 10:44:35 +03:00
}