import { Badge, BadgeProps, HStack, Stack, StackProps } from "@chakra-ui/react" import Link, { LinkProps } from "next/link" import { StatusBadge } from "./status-badge" interface SideNavItem { title: React.ReactNode url: LinkProps["href"] | undefined external?: boolean status?: string } interface SideNavProps { currentUrl?: string title?: React.ReactNode status?: string items: Array } const SideNavItem = (props: StackProps) => { return ( ) } export const SideNav = (props: SideNavProps) => { const { title, items, currentUrl, status } = props return ( {title && ( {title} {status && {status}} )} {items.map((item, index) => ( {item.external ? ( {item.title} {item.status && {item.status}} ) : ( {item.title} {item.status && {item.status}} )} ))} ) }