import { useState } from 'react' import { Routes, Route, useLocation } from 'react-router-dom' import Sidebar from './components/Sidebar' import TopBar from './components/TopBar' import Glance from './pages/Glance' import Infrastructure from './pages/Infrastructure' import BookNest from './pages/BookNest' function App() { const [sidebarCollapsed, setSidebarCollapsed] = useState(false) const sidebarWidth = sidebarCollapsed ? 64 : 200 const location = useLocation() const showHero = location.pathname === '/infrastructure' || location.pathname === '/booknest' const heroPaddingTop = location.pathname === '/booknest' ? '90px' : '72px' const heroObjectPosition = location.pathname === '/booknest' ? '54% 8%' : 'center 5%' const topBarHeight = location.pathname === '/booknest' ? 72 : 56 return (
setSidebarCollapsed(!sidebarCollapsed)} />
{showHero && (
)}
} /> } /> } />
) } export default App