mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-08 22:46:49 +02:00
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import * as React from "react"
|
|
import Link from "next/link"
|
|
|
|
import { NavItem } from "@/types/nav"
|
|
import { siteConfig } from "@/config/site"
|
|
import { cn } from "@/lib/utils"
|
|
// import { Icons } from "@/components/icons"
|
|
|
|
interface TopNavigationItemsProps {
|
|
items?: NavItem[]
|
|
}
|
|
|
|
export function TopNavigationItems({ items }: TopNavigationItemsProps) {
|
|
return (
|
|
<div className="flex gap-6 md:gap-10">
|
|
<Link href="/" className="flex items-center space-x-2">
|
|
{/* <Icons.logo className="h-6 w-6" /> */}
|
|
<span className="inline-block font-bold">{siteConfig.name}</span>
|
|
</Link>
|
|
{/* TOP NAVIGATION ITEMS */}
|
|
{/* {items?.length ? (
|
|
<nav className="flex gap-6">
|
|
{items?.map(
|
|
(item, index) =>
|
|
item.href && (
|
|
<Link
|
|
key={index}
|
|
href={item.href}
|
|
className={cn(
|
|
"flex items-center text-sm font-medium text-muted-foreground",
|
|
item.disabled && "cursor-not-allowed opacity-80"
|
|
)}
|
|
>
|
|
{item.title}
|
|
</Link>
|
|
)
|
|
)}
|
|
</nav>
|
|
) : null} */}
|
|
</div>
|
|
)
|
|
} |