2
2
3
3
import { ArrowLeft , ArrowRight } from "lucide-react" ;
4
4
import Link from "next/link" ;
5
+ import { Button } from "@/components/ui/button" ;
5
6
6
7
interface NavigationLink {
7
8
title : string ;
@@ -20,28 +21,30 @@ export function DocsNavigation({ prev, next }: DocsNavigationProps) {
20
21
aria-label = "Documentation navigation"
21
22
>
22
23
{ prev ? (
23
- < Link
24
- href = { prev . path }
25
- prefetch
26
- aria-label = { `Previous: ${ prev . title } ` }
27
- className = "group flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-4 py-3 text-gray-700 shadow-sm transition hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700"
28
- >
29
- < ArrowLeft className = "h-5 w-5 shrink-0 text-gray-500 transition group-hover:text-gray-700 dark:text-gray-400 dark:group-hover:text-gray-200" />
30
- < span className = "truncate text-sm font-medium" > { prev . title } </ span >
24
+ < Link href = { prev . path } prefetch aria-label = { `Previous: ${ prev . title } ` } >
25
+ < Button
26
+ variant = "secondary"
27
+ size = "md"
28
+ leftIcon = { < ArrowLeft className = "h-5 w-5 text-gray-500 dark:text-gray-400" /> }
29
+ className = "group text-gray-700 dark:text-gray-300"
30
+ >
31
+ < span className = "truncate" > { prev . title } </ span >
32
+ </ Button >
31
33
</ Link >
32
34
) : (
33
35
< div />
34
36
) }
35
37
36
38
{ next ? (
37
- < Link
38
- href = { next . path }
39
- prefetch
40
- aria-label = { `Next: ${ next . title } ` }
41
- className = "group flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-4 py-3 text-gray-700 shadow-sm transition hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700"
42
- >
43
- < span className = "truncate text-sm font-medium" > { next . title } </ span >
44
- < ArrowRight className = "h-5 w-5 shrink-0 text-gray-500 transition group-hover:text-gray-700 dark:text-gray-400 dark:group-hover:text-gray-200" />
39
+ < Link href = { next . path } prefetch aria-label = { `Next: ${ next . title } ` } >
40
+ < Button
41
+ variant = "secondary"
42
+ size = "md"
43
+ rightIcon = { < ArrowRight className = "h-5 w-5 text-gray-500 dark:text-gray-400" /> }
44
+ className = "group text-gray-700 dark:text-gray-300"
45
+ >
46
+ < span className = "truncate" > { next . title } </ span >
47
+ </ Button >
45
48
</ Link >
46
49
) : (
47
50
< div />
0 commit comments