mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Openmeteo Widget
This commit is contained in:
7
src/components/widgets/openmeteo/icon.jsx
Normal file
7
src/components/widgets/openmeteo/icon.jsx
Normal file
@@ -0,0 +1,7 @@
|
||||
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" />;
|
||||
}
|
||||
Reference in New Issue
Block a user