local-weather/components/DailyCard/DailyCard.tsx

17 lines
618 B
TypeScript
Raw Normal View History

2024-05-12 05:06:44 +00:00
import { DailyCardPropType } from "@/types/types"
import WeatherIcon from "../WeatherIcon"
import DailyTemp from "./DailyTemp"
import DailyTime from "./DailyTime";
export default function DailyCard(props: DailyCardPropType) {
const time = props.time;
const weatherCode = props.weatherCode
const temperature = props.temperature
return (
2024-05-12 19:33:36 +00:00
<div className="min-w-28 m-1 p-2 text-center shadow-md border-slate-200 border-2 rounded">
2024-05-12 05:06:44 +00:00
<WeatherIcon weatherCode={weatherCode}/>
<DailyTemp temperature={temperature} />
<DailyTime time={time} />
</div>
)
};