'use client' import { Navbar as NextUINavbar, NavbarContent, NavbarMenu, NavbarMenuToggle, NavbarBrand, NavbarItem, NavbarMenuItem, } from '@nextui-org/navbar' import { Kbd } from '@nextui-org/kbd' import { Link } from '@nextui-org/link' import { Input } from '@nextui-org/input' import { link as linkStyles } from '@nextui-org/theme' import { siteConfig } from '@/config/site' import NextLink from 'next/link' import clsx from 'clsx' import { ThemeSwitch } from '@/components/theme-switch' import { GithubIcon, SearchIcon } from '@/components/icons' import { Icon } from '@iconify/react' import NewBookmarkForm from '@/components/newBookmarkForm' import { usePathname } from 'next/navigation' export const Navbar = () => { const searchInput = ( K } labelPlacement='outside' placeholder='Search...' startContent={ } type='search' /> ) const pathname = usePathname() return (

Dashboard

    {siteConfig.navItems.map((item) => ( {item.label} ))}
{pathname.startsWith('/dashboard') && (
)}
{searchInput}
{siteConfig.navMenuItems.map((item, index) => ( {item.label} ))}
) }