import { IconButton, Popover, Typography, Button } from "@mui/material"; import React, { useState } from "react"; import EditIcon from "@mui/icons-material/Edit"; import TuneIcon from "@mui/icons-material/Tune"; import { useDispatch } from "react-redux"; import { OPEN_MODAL } from "../../../../lib/redux/slices/appSlice"; import { AllDispensersEditForm } from "./AllDispensersEditForm"; export const AllDispensersOperations = ({ item, updateTable }) => { const [anchorEl, setAnchorEl] = useState(null); const dispatch = useDispatch(); const handleClick = (event) => { setAnchorEl(event.currentTarget); }; const handleClose = () => { setAnchorEl(null); }; const open = Boolean(anchorEl); const id = open ? "popover" : undefined; return (
); };