Henrik Larsson 21f4893b70 Updates
2023-08-21 11:42:16 +02:00

24 lines
505 B
TypeScript

'use client';
import Link from 'next-intl/link';
export default function DesktopMenu({ items }: { items: [] }) {
if (!items) {
return;
}
return (
<ul className="flex gap-6">
{items.map((item: { title: string; slug: string }, i: number) => {
return (
<li key={i}>
<Link className="font-medium underline-offset-2 hover:underline" href={`${item.slug}`}>
{item.title}
</Link>
</li>
);
})}
</ul>
);
}