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