import { List, ListItem, Text } from '@umami/react-zen'; import { usePathname } from 'next/navigation'; import Link from 'next/link'; export interface SideNavProps { items: any[]; shallow?: boolean; scroll?: boolean; } export function MenuNav({ items, shallow = true, scroll = false }: SideNavProps) { const pathname = usePathname(); return ( {items.map(({ key, label, url }) => { const isSelected = pathname.startsWith(url); return ( {label} ); })} ); }