Added OpenWeatherMap widget.

This commit is contained in:
AlexFullmoon
2022-08-27 13:30:17 +03:00
parent f0f470ba8b
commit 6a97d392c9
6 changed files with 482 additions and 0 deletions

View 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>;
}