// ** React Imports import { MouseEvent, useState } from 'react' // ** MUI Imports import Box from '@mui/material/Box' import Menu from '@mui/material/Menu' import MenuItem from '@mui/material/MenuItem' import Typography from '@mui/material/Typography' interface State { mouseX: null | number mouseY: null | number } const initialState = { mouseX: null, mouseY: null } const MenuContext = () => { // ** State const [state, setState] = useState(initialState) const handleClick = (event: MouseEvent) => { event.preventDefault() setState({ mouseX: event.clientX - 2, mouseY: event.clientY - 4 }) } const handleClose = () => { setState(initialState) } return ( Apple pie bonbon sweet brownie cake lemon drops carrot cake danish carrot cake. Marzipan jujubes cupcake cake bear claw jujubes. Macaroon candy canes jelly-o sugar plum biscuit. Cupcake cupcake oat cake cookie donut candy canes chupa chups. Jelly beans carrot cake soufflé gummies sweet cake halvah carrot cake. Candy marshmallow apple pie donut toffee pudding jelly croissant jelly. Dragée cake liquorice cake gummi bears. Gummi bears caramels tootsie roll caramels lemon drops caramels chocolate cake jelly oat cake. Oat cake tart biscuit cake. Copy Print Email Highlight ) } export default MenuContext