diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 07acb0f..ff77bbb 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,15 +1,46 @@ -import { BrowserRouter, Routes, Route } from 'react-router-dom'; +import { BrowserRouter, Routes, Route, Link, useLocation } from 'react-router-dom'; import LobbyPage from './pages/LobbyPage'; import RoomPage from './pages/RoomPage'; import GamePage from './pages/GamePage'; +import SimulatorPage from './pages/SimulatorPage'; + +function Nav() { + const location = useLocation(); + // Hide nav on active game pages + if (location.pathname.startsWith('/game/')) return null; + const links = [ + { to: '/', label: 'Lobby' }, + { to: '/simulator', label: 'Simulator' }, + ]; + return ( + + ); +} function App() { return ( +