import { Routes, Route, Navigate } from "react-router-dom"; import { useState } from "react"; import { Layout } from "./components/Layout"; import { Home } from "./pages/Home"; import { DocPage } from "./pages/DocPage"; import { NotFound } from "./pages/NotFound"; export default function App() { // Mobile-friendly sidebar toggle lifted to App scope so the topbar // hamburger and the sidebar stay in sync across navigation. const [sidebarOpen, setSidebarOpen] = useState(false); return ( }> setSidebarOpen(true)} />} /> } /> } /> } /> ); }