import Image from "next/image"; import { weatherIcons } from "@/app/weatherIcons"; // this component takes WeatherIconPropType as props and shows the weather icon for the hour index it is given in timeIndex prop. export default function WeatherIcon(props: { weatherCode: number }) { const currentWeather = weatherIcons.filter((weather) => { return weather.code === props.weatherCode; }); return (