Openmeteo Widget

This commit is contained in:
Michael Shamoon 2022-10-20 01:52:47 -07:00
parent 13f622b323
commit e1a62a69f6
5 changed files with 204 additions and 0 deletions

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