// ** React Imports import { MouseEvent, useState } from 'react' // ** MUI Imports import Menu from '@mui/material/Menu' import MenuItem from '@mui/material/MenuItem' import IconButton from '@mui/material/IconButton' // ** Icon Imports import Icon from 'src/@core/components/icon' const options = [ 'None', 'Atria', 'Callisto', 'Dione', 'Ganymede', 'Hangouts Call', 'Luna', 'Oberon', 'Phobos', 'Pyxis', 'Sedna', 'Titania', 'Triton', 'Umbriel' ] const ITEM_HEIGHT = 48 const MenuMaxHeight = () => { // ** State const [anchorEl, setAnchorEl] = useState(null) const handleClick = (event: MouseEvent) => { setAnchorEl(event.currentTarget) } const handleClose = () => { setAnchorEl(null) } return (
{options.map(option => ( {option} ))}
) } export default MenuMaxHeight