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

Function HeaderLinks

apps/baseai.dev/src/components/Header.tsx:65–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65function HeaderLinks() {
66 const pathname = usePathname();
67 const isLearnPath = pathname.startsWith('/learn');
68 const href = isLearnPath ? '/docs' : '/learn';
69 const text = isLearnPath ? 'Docs' : 'Learn';
70
71 return (
72 <>
73 <Anchor
74 href={href}
75 className="w-28 font-semibold"
76 variant={'default'}
77 >
78 {text}
79 </Anchor>
80 <Anchor
81 href={'https://github.com/LangbaseInc/baseai'}
82 target="_blank"
83 className="hidden xl:flex group border-primary/30"
84 variant={'outline'}
85 >
86 <GitHubIcon className="size-4 text-black dark:text-white group-hover:text-white group-hover:dark:text-black" />
87 <span className="leading-none flex-grow truncate">Star us on GitHub</span>
88 </Anchor>
89 </>
90 );
91}
92
93function Socials() {
94 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected