local-weather/components/Temperature.tsx
ChrQR 83b337db03
All checks were successful
Docker Build & Publish / Build Docker (push) Successful in 1m9s
Fixed for mobile?
2024-05-12 21:14:36 +02:00

12 lines
301 B
TypeScript

import { useContext } from "react";
import { WeatherContext } from "./WeatherNow";
export default function Temperature() {
const { weather } = useContext(WeatherContext)
const feels = weather.current.apparent_temperature;
return (
<p className="text-2xl mt-2">{feels}°C</p>
)
}