Menu czakry otwiera się na zawisie
import { useDisclosure, Menu, MenuButton, MenuList, MenuItem } from '@chakra-ui/react'
export default function Navbar(){
return (
<Menu isOpen={isOpen}>
<MenuButton onMouseEnter={onOpen} onMouseLeave={onClose}>
<span className="mr-1">
CAREER
</span>
</MenuButton>
<MenuList className="drop" onMouseEnter={onOpen} onMouseLeave={onClose}>
<MenuItem className="menu_item hover:opacity-60 hover:text-black ">
<Link href="/join-our-team">
<a className={` ${pathname == '/join-our-team' ? 'opacity-60 text-white scale-110 ml-1' : ''}`}>JOIN OUR TEAM</a>
</Link>
</MenuItem>
<MenuItem className="menu_item hover:opacity-60 hover:text-black ">
<Link href="/life-at-sirocco">
<a className={`z-[1000] ${pathname == '/life-at-sirocco' ? 'opacity-60 text-white scale-110 ml-1' : ''}`}>LIFE AT SIROCCO</a>
</Link>
</MenuItem>
</MenuList>
</Menu>
)
}
Shirshak kandel