"use client"; import { ArrowUpRight } from "lucide-react"; import Anchor from "@/components/anchor"; import docuConfig from "@/docu.json"; interface NavbarItem { title: string; href: string; } const { navbar } = docuConfig; export function DocsNavbar() { // Show all nav items const navItems = navbar?.menu || []; return (
{/* Navigation Links */}
{navItems.map((item: NavbarItem) => { const isExternal = item.href.startsWith("http"); return ( {item.title} {isExternal && } ); })}
); } export default DocsNavbar;