|
|
|
|
@ -9,7 +9,6 @@ import {
|
|
|
|
|
NavbarItem,
|
|
|
|
|
NavbarMenuItem,
|
|
|
|
|
} from '@nextui-org/navbar'
|
|
|
|
|
import { Kbd } from '@nextui-org/kbd'
|
|
|
|
|
import {
|
|
|
|
|
Dropdown,
|
|
|
|
|
DropdownMenu,
|
|
|
|
|
@ -27,35 +26,13 @@ import NextLink from 'next/link'
|
|
|
|
|
import clsx from 'clsx'
|
|
|
|
|
|
|
|
|
|
import { ThemeSwitch } from '@/components/theme-switch'
|
|
|
|
|
import { GithubIcon, SearchIcon } from '@/components/icons'
|
|
|
|
|
import { GithubIcon } from '@/components/icons'
|
|
|
|
|
|
|
|
|
|
import { Icon } from '@iconify/react'
|
|
|
|
|
import NewBookmarkForm from '@/components/newBookmarkForm'
|
|
|
|
|
import { usePathname } from 'next/navigation'
|
|
|
|
|
|
|
|
|
|
export const Navbar = () => {
|
|
|
|
|
const searchInput = (
|
|
|
|
|
<Input
|
|
|
|
|
aria-label='Search'
|
|
|
|
|
classNames={{
|
|
|
|
|
inputWrapper: 'bg-default-100',
|
|
|
|
|
input: 'text-sm',
|
|
|
|
|
}}
|
|
|
|
|
endContent={
|
|
|
|
|
<Kbd
|
|
|
|
|
className='hidden lg:inline-block'
|
|
|
|
|
keys={['command']}>
|
|
|
|
|
K
|
|
|
|
|
</Kbd>
|
|
|
|
|
}
|
|
|
|
|
labelPlacement='outside'
|
|
|
|
|
placeholder='Search...'
|
|
|
|
|
startContent={
|
|
|
|
|
<SearchIcon className='pointer-events-none flex-shrink-0 text-base text-default-400' />
|
|
|
|
|
}
|
|
|
|
|
type='search'
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const pathname = usePathname()
|
|
|
|
|
|
|
|
|
|
|