homepage-plus/src/components/widgets/openmeteo/icon.jsx
2022-10-20 20:03:41 -07:00

7 lines
256 B
JavaScript

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