diff --git a/packages/website/src/components/Sidebar.tsx b/packages/website/src/components/Sidebar.tsx index 90d3615e8..3b4b77152 100644 --- a/packages/website/src/components/Sidebar.tsx +++ b/packages/website/src/components/Sidebar.tsx @@ -1,17 +1,29 @@ import { SidebarGroup } from "./SidebarGroup.js"; import { SidebarItem } from "./SidebarItem.js"; -export const Sidebar = () => ( +export const Sidebar = ({ path }: { path: string }) => ( ); diff --git a/packages/website/src/routes/docs/index.tsx b/packages/website/src/routes/docs/index.tsx index 3ad0b20a4..c07d54f29 100644 --- a/packages/website/src/routes/docs/index.tsx +++ b/packages/website/src/routes/docs/index.tsx @@ -1,10 +1,16 @@ import { ReactNode } from "react"; import { Sidebar } from "../../components/Sidebar.js"; -export default function Layout({ children }: { children: ReactNode }) { +export default function Layout({ + path, + children, +}: { + path: string; + children: ReactNode; +}) { return (
- +
{children}
);