import React, { useRef, useState } from 'react';
import {
Button, ButtonGroup, Menu, MenuItem, Typography,
} from '@mui/material';
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
const SplitButton = ({ fullWidth, variant, color, disabled, onClick, options, selected, setSelected }) => {
const anchorRef = useRef();
const [menuAnchorEl, setMenuAnchorEl] = useState(null);
return (
<>