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

Function PageLink

apps/baseai.dev/src/components/Footer.tsx:13–43  ·  view source on GitHub ↗
({
	label,
	page,
	previous = false
}: {
	label: string;
	page: { href: string; title: string };
	previous?: boolean;
})

Source from the content-addressed store, hash-verified

11import { DiscordIcon } from './icons/DiscordIcon';
12
13function PageLink({
14 label,
15 page,
16 previous = false
17}: {
18 label: string;
19 page: { href: string; title: string };
20 previous?: boolean;
21}) {
22 return (
23 <>
24 <Button
25 className="not-prose"
26 href={page.href}
27 aria-label={`${label}: ${page.title}`}
28 variant="outline-muted"
29 arrow={previous ? 'left' : 'right'}
30 >
31 {label}
32 </Button>
33 <Link
34 href={page.href}
35 tabIndex={-1}
36 aria-hidden="true"
37 className="prose text-base font-semibold text-zinc-900 transition dark:prose-invert hover:text-zinc-600 dark:text-white dark:hover:text-zinc-300"
38 >
39 {page.title}
40 </Link>
41 </>
42 );
43}
44
45function PageNavigation() {
46 let pathname = usePathname();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected