import { Link, useLocation } from "react-router-dom"; import { Outlet } from "react-router-dom"; import RouteObject from "./RouteObject"; function SideNav() { const location = useLocation(); return ( {Object.entries(RouteObject.sideNav).map(([categoryName, links]) => { return ( {categoryName} {links.map((link) => ( {link.name} ))} ); })} ); } function DocsLayout() { return (