import React from 'react' import { cn } from '../../../../../utils' import type { NavItemAction, NavItemAnchor } from '../../config' import { LevelStateContext } from '../../context' import styles from '../../styles.module.css' type Props = { onClick?: () => void entry: NavItemAnchor | NavItemAction showIcon?: boolean } export function NavListItem({ children, onClick, entry, showIcon, }: React.PropsWithChildren) { const { navHighlight } = React.useContext(LevelStateContext) const active = navHighlight?.[0] === entry.label return (
  • {children}
  • ) }