({
href = '',
type = 'nav',
children,
className,
target,
...props
})
| 21 | }; |
| 22 | |
| 23 | const NavItem: FC<PropsWithChildren<NavItemProps>> = ({ |
| 24 | href = '', |
| 25 | type = 'nav', |
| 26 | children, |
| 27 | className, |
| 28 | target, |
| 29 | ...props |
| 30 | }) => ( |
| 31 | <BaseActiveLink |
| 32 | target={target} |
| 33 | href={href} |
| 34 | className={classNames(styles.navItem, styles[type], className)} |
| 35 | activeClassName={styles.active} |
| 36 | allowSubPath={href.startsWith('/')} |
| 37 | {...props} |
| 38 | > |
| 39 | <span className={styles.label}>{children}</span> |
| 40 | |
| 41 | {target === '_blank' && <ArrowUpRightIcon className={styles.icon} />} |
| 42 | </BaseActiveLink> |
| 43 | ); |
| 44 | |
| 45 | export default NavItem; |
nothing calls this directly
no outgoing calls
no test coverage detected