({
label,
page,
previous = false
}: {
label: string;
page: { href: string; title: string };
previous?: boolean;
})
| 11 | import { DiscordIcon } from './icons/DiscordIcon'; |
| 12 | |
| 13 | function 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 | |
| 45 | function PageNavigation() { |
| 46 | let pathname = usePathname(); |
nothing calls this directly
no outgoing calls
no test coverage detected