mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-15 09:20:32 +00:00
Openmeteo Widget
This commit is contained in:
parent
13f622b323
commit
e1a62a69f6
5 changed files with 204 additions and 0 deletions
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" />;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue