import React from 'react'; import IconButton from '@mui/material/IconButton'; import MenuIcon from '@mui/icons-material/Menu'; import CloseIcon from '@mui/icons-material/Close'; interface GlobalMenuButtonProps { open: boolean; onClick: (open: boolean) => void; } const KOSMenuButton = (props: GlobalMenuButtonProps): React.ReactElement => { const { open, onClick } = props; return ( <> onClick(true)} edge="start" sx={{ marginRight: 4, marginLeft: '-2px', ...(open && { display: 'none' }), }} > onClick(false)} edge="start" sx={{ marginRight: 4, marginLeft: '-2px', ...(!open && { display: 'none' }), }} > ); }; export default KOSMenuButton;