import React from 'react'; interface NavItemOwnProps { /** Figma's `Icon` slot — an optional leading icon. */ icon?: React.ReactNode; /** Figma's `Show Chevron`. Set on a nav item that opens a menu, not a plain link. */ showChevron?: boolean; /** * The page the user is on. Marks the item `aria-current="page"` and draws * the same indicator Tabs' underline does — so a section switcher built from * NavItems says where you are, in words for a screen reader and in more than * colour for everyone else. */ isCurrent?: boolean; isDisabled?: boolean; /** * @deprecated Use `isDisabled`. Accepted as an alias for one minor version. */ disabled?: boolean; children?: React.ReactNode; className?: string; } export type NavItemProps = NavItemOwnProps & (({ href: string; } & Omit, keyof NavItemOwnProps>) | ({ href?: undefined; } & Omit, keyof NavItemOwnProps | 'type'>)); /** * Nav Item renders an `` when given `href`, a `