2026-02-15 11:23:51 +01:00
|
|
|
/**
|
|
|
|
|
* BackLink — reusable "← Back to X" navigation link.
|
|
|
|
|
* Used in album headers to navigate back to a parent subpage or homepage.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import Link from 'next/link';
|
|
|
|
|
|
|
|
|
|
interface BackLinkProps {
|
|
|
|
|
href: string;
|
|
|
|
|
label: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function BackLink({ href, label }: BackLinkProps) {
|
|
|
|
|
return (
|
2026-03-27 10:52:39 +01:00
|
|
|
<Link href={href} className="album-header__back" aria-label={`Back to ${label}`}>
|
2026-02-15 11:23:51 +01:00
|
|
|
<svg
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
fill="none"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
strokeWidth="2"
|
|
|
|
|
strokeLinecap="round"
|
|
|
|
|
strokeLinejoin="round"
|
|
|
|
|
>
|
|
|
|
|
<polyline points="15 18 9 12 15 6" />
|
|
|
|
|
</svg>
|
|
|
|
|
{label}
|
|
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
}
|