'use client'; import Link from 'next/link'; import Image from 'next/image'; import { usePathname } from 'next/navigation'; const navItems = [ { href: '/docs', label: 'Docs' }, { href: '/examples', label: 'Examples' }, { href: '/docs/api', label: 'API' }, ]; export function TopNav() { const pathname = usePathname(); const isActive = (href: string) => { if (href === '/docs') { return pathname === '/docs' || (pathname.startsWith('/docs') && !pathname.startsWith('/docs/api')); } return pathname.startsWith(href); }; return (
{/* Logo */} Composio Composio {/* Nav Items */}
); }