MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / Navigation

Function Navigation

apps/baseai.dev/src/components/Navigation.tsx:279–302  ·  view source on GitHub ↗
(props: React.ComponentPropsWithoutRef<'nav'>)

Source from the content-addressed store, hash-verified

277}
278
279export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected