import { useContext } from 'react'; import { Routes, Route, Navigate } from 'react-router-dom'; import { Home } from './home/_home'; import { AuthContext } from '../utils/auth_context'; import { SignIn } from './sign_in/_sign_in'; import { SignUp } from './sign_up/_sign_up'; export const Router = () => { const [authToken] = useContext(AuthContext); return ( : } // no jwt means not logged in /> } /> } /> ); };