import { useEffect } from "react"; import { Outlet, useLocation } from "react-router-dom"; import { ErrorBoundary } from "../components/common/ErrorBoundary"; import { Sidebar } from "../components/navigation/Sidebar"; import { Topbar } from "../components/navigation/Topbar"; import { resolvePageMeta } from "../features/navigation/schema"; import { writeRecentVisit } from "../lib/recentVisits"; export function AppShellLayout() { const location = useLocation(); useEffect(() => { const pathname = location.pathname; if (!pathname || pathname === "/login" || pathname.startsWith("/mobile/")) { return; } writeRecentVisit(pathname, resolvePageMeta(pathname).title); }, [location.pathname]); return (
); }