mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Added OpenWeatherMap widget.
This commit is contained in:
7
src/components/widgets/openweathermap/icon.jsx
Normal file
7
src/components/widgets/openweathermap/icon.jsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import mapIcon from "utils/owm-condition-map";
|
||||
|
||||
export default function Icon({ condition, timeOfDay }) {
|
||||
const Icon = mapIcon(condition, timeOfDay);
|
||||
|
||||
return <Icon className="w-10 h-10 text-theme-800 dark:text-theme-200"></Icon>;
|
||||
}
|
||||
Reference in New Issue
Block a user