mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 22:16:58 +00:00
24 lines
505 B
TypeScript
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>
|
|
);
|
|
}
|