import { useQuery } from "@tanstack/react-query" import { Fragment, useEffect, useState } from "react" import cn from "./components/lib/cn" import { StatusSeverity, getLineColor, getStatusBorderColor, tflDisruptionsQuery } from "./tfl" import { DEFAULT_LATITUDE, DEFAULT_LONGITUDE, currentWeatherQuery, dailyForecastQuery, getWeatherIcon, weatherDescriptionQuery, } from "./weather" function App() { return (
{formattedDate}
{formattedTime}
Loading weather
Error loading weather
{error?.message ?? "Unknown error"}
H:{highTemp}°
L:{lowTemp}°
{temperature}°
{weatherDescriptionContent}
Loading tube status
Error loading from TfL
{errorTFL?.message}
No TfL data available
{lineName}
{reason}
> ) } export default App