2024-05-09 23:10:37 +00:00
|
|
|
import { useContext } from "react";
|
|
|
|
import { WeatherContext } from "./WeatherNow";
|
2024-05-05 07:51:29 +00:00
|
|
|
|
|
|
|
|
2024-05-09 23:10:37 +00:00
|
|
|
|
|
|
|
export default function Temperature() {
|
|
|
|
const { weather } = useContext(WeatherContext)
|
|
|
|
const feels = weather.current.apparent_temperature;
|
2024-05-05 07:51:29 +00:00
|
|
|
return (
|
2024-05-12 19:14:36 +00:00
|
|
|
<p className="text-2xl mt-2">{feels}°C</p>
|
2024-05-05 07:51:29 +00:00
|
|
|
)
|
2024-05-10 10:34:38 +00:00
|
|
|
}
|