import {lazy, Suspense } from "react" import WeatherHistory from '@/hooks/weather-history' const Chart = lazy(() => import("./temperature-plot-chart")) function TemperaturePlot() { const {data, isLoading, error} = WeatherHistory() if (isLoading) return

Loading...

if (error) return

Error: {error.message}

return ( }> ) } export default TemperaturePlot