'use client' import Link from 'next/link' import { usePathname } from 'next/navigation' import { ArrowIcon } from './ArrowIcon' export function SiblingLinks({ routes, }: { routes: { pathname: string; title: string }[] }) { const pathname = usePathname() const currentIndex = routes.findIndex((page) => page.pathname === pathname) const previousPage = currentIndex > 0 ? routes[currentIndex - 1] : null const nextPage = currentIndex < routes.length - 1 ? routes[currentIndex + 1] : null return (