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