import * as React from 'react' import {usePageContext} from '../utils/page-context' import {Separator} from './ui/separator' import {getNavigationTree} from '../utils/navigation' export default function Sidebar(): React.ReactNode { const pageContext = usePageContext() const location = pageContext.urlPathname const navTree = getNavigationTree() return (
{navTree.map((section, index) => ( {index < navTree.length - 1 && ( )} ))}
) }