mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
8 lines
256 B
JavaScript
8 lines
256 B
JavaScript
import mapIcon from "utils/weather/owm-condition-map";
|
|
|
|
export default function Icon({ condition, timeOfDay }) {
|
|
const IconComponent = mapIcon(condition, timeOfDay);
|
|
|
|
return <IconComponent className="w-10 h-10 text-theme-800 dark:text-theme-200" />;
|
|
}
|