local-weather/components/DailyCard/DailyCard.tsx
christian e52b362512
Some checks failed
Docker Build & Publish / Build Docker (push) Failing after 52s
changed to weekly from hourly
2024-05-12 07:06:44 +02:00

17 lines
605 B
TypeScript

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 (
<div className="m-2 text-center shadow-md border-slate-200 border-2 rounded">
<WeatherIcon weatherCode={weatherCode}/>
<DailyTemp temperature={temperature} />
<DailyTime time={time} />
</div>
)
};