(props: React.ComponentPropsWithoutRef<'nav'>)
| 277 | } |
| 278 | |
| 279 | export function Navigation(props: React.ComponentPropsWithoutRef<'nav'>) { |
| 280 | const pathname = usePathname(); |
| 281 | const isLearn = pathname.startsWith('/learn'); |
| 282 | const navLinks = isLearn ? navLearn : navigationData; |
| 283 | |
| 284 | return ( |
| 285 | <nav {...props}> |
| 286 | <ul role="list"> |
| 287 | {navLinks.map((group, groupIndex) => ( |
| 288 | <NavigationGroup |
| 289 | key={group.title} |
| 290 | group={group} |
| 291 | className={groupIndex === 0 ? 'md:mt-0' : ''} |
| 292 | /> |
| 293 | ))} |
| 294 | {/* <li className="sticky bottom-0 z-10 mt-6 min-[416px]:hidden"> |
| 295 | <Button href="#" variant="filled" className="w-full"> |
| 296 | Sign in |
| 297 | </Button> |
| 298 | </li> */} |
| 299 | </ul> |
| 300 | </nav> |
| 301 | ); |
| 302 | } |
nothing calls this directly
no outgoing calls
no test coverage detected