import Link from 'next/link' import { useState } from 'react' export const MenuItemDrop = ({ link }) => { const [show, changeShow] = useState(false) // const show = true // const changeShow = () => {} if (!link || !link.show) { return null } const hasSubMenu = link?.subMenus?.length > 0 return