import { Outlet, useLocation } from 'react-router-dom'; import Sidebar from '@/components/layout/Sidebar'; import Header from '@/components/layout/Header'; import { ErrorBoundary } from '@/App'; export default function Layout() { const { pathname } = useLocation(); return (
{/* Fixed sidebar */} {/* Main area offset by sidebar width (240px / w-60) */}
{/* Page content — ErrorBoundary keyed by pathname so the nav shell survives a page crash and the boundary resets on route change */}
); }