import { Box, Heading, Stack, VStack } from "@chakra-ui/react" import Card from "components/card" import { useRouter } from "next/router" import * as React from "react" import { Route } from "src/types/route" import SidebarLink from "./sidebar-link" export function SidebarContent(props) { const { routes, pathname, contentRef } = props return ( <> {routes.map((route: Route) => { if (route.disabled) { return null } return {route.title} })} ) } const Sidebar = ({ routes, title, ...props }) => { const { pathname } = useRouter() const ref = React.useRef(null) return ( {title} ) } export default Sidebar