local-weather/components/HourlyCard/HourlyCard.tsx

14 lines
506 B
TypeScript
Raw Normal View History

import { HourlyCardPropType } from "@/types/types"
import WeatherIcon from "./WeatherIcon"
import HourlyTemp from "./HourlyTemp"
export default function HourlyCard(props: HourlyCardPropType) {
2024-05-10 17:23:02 +00:00
const weatherCode = props.weatherCode
const temperature = props.temperature
return (
2024-05-10 17:23:02 +00:00
<div className="m-2 text-center shadow-md border-slate-200 border-2 rounded">
<WeatherIcon weatherCode={weatherCode}/>
<HourlyTemp temperature={temperature} />
2024-05-10 17:23:02 +00:00
</div>
)
};