import { Outlet, useLocation } from "react-router-dom"; import { DocSidebar } from "./DocSidebar"; import { DocBreadcrumbs } from "./DocBreadcrumbs"; import { DocPagination } from "./DocPagination"; import { TableOfContents } from "./components/TableOfContents"; export function DocLayout() { const { pathname } = useLocation(); const isHome = pathname === "/docs"; return (
{/* Left sidebar */} {/* Main content */}
{/* Article */}
{!isHome && }
{!isHome && }
{/* Right TOC (hidden on home page and small screens) */} {!isHome && (
)}
); }