import React, {lazy, Suspense} from "react" import {BrowserRouter, Route, Routes} from "react-router-dom" import useAuthUser from "../hooks/AuthUser" import Header from "../components/Header" import Weather from "./Weather" const ForgotPassword = lazy(() => import('./Auth/ForgotPassword')) const Home = lazy(() => import('./Home')) const Login = lazy(() => import('./Auth/Login')) const Profile = lazy(() => import('./Auth/Profile')) const Reset = lazy(() => import('./Auth/Reset')) const Rainfall = lazy(() => import('./Rainfall')) const RainfallIndex = lazy(() => import('./Rainfall/RainfallIndex')) const Router = () => { const {loadingAuthUser} = useAuthUser() return <> {loadingAuthUser ? '...loading' :
} /> } /> } /> {/*} />*/} } /> } /> } /> } /> } /> } } export default Router