Skip to content

Commit c33ab21

Browse files
Update app/dfda/components/BackButton.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 6c5a948 commit c33ab21

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

app/dfda/components/BackButton.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
import { ArrowLeft } from 'lucide-react'
44
import Link from 'next/link'
55

6-
export default function BackButton() {
6+
interface BackButtonProps {
7+
href: string;
8+
label?: string;
9+
}
10+
11+
export default function BackButton({ href, label = 'Back to dFDA' }: BackButtonProps) {
712
return (
813
<Link
9-
href="/dfda"
14+
href={href}
15+
aria-label={label}
1016
className="group mb-6 inline-flex items-center gap-2 rounded-xl border-4 border-black bg-white px-4 py-2 font-bold shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] transition-all hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none"
1117
>
1218
<ArrowLeft className="transition-transform group-hover:-translate-x-1" />
13-
Back to dFDA
19+
{label}
1420
</Link>
1521
)
16-
}
22+
}

0 commit comments

Comments
 (0)