mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 22:13:39 +01:00
8 lines
256 B
React
8 lines
256 B
React
![]() |
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" />;
|
||
|
}
|