()
| 63 | } |
| 64 | |
| 65 | function 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 | |
| 93 | function Socials() { |
| 94 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected