bindTrigger,bindMenu,}from'material-ui-popup-state/hooks'constMenuPopupState=()=>{constpopupState=usePopupState({variant:'popover',popupId:'demoMenu'})return(<Buttonvariant="contained"{...bindTrigger(popupState)}>Open Menu<
import * as React from 'react' import Button from '@mui/material/Button' import Menu from '@mui/material/Menu' import MenuItem from '@mui/material/MenuItem' import { usePopupState, bindTrigger, bindMenu, } from 'material-ui-popup-state/hooks' const MenuPopupState = () => { const ...