import { PowerSettingsNewRounded } from '@mui/icons-material';
import { IconButton } from '@mui/material';
// @ts-ignore
import { useWallet } from '@suiet/wallet-kit';

export const MVMDisconnectIconButton = () => {
  const wallet = useWallet();

  return (
    <IconButton
      size="medium"
      onClick={(e) => {
        e.stopPropagation();
        wallet?.disconnect();
      }}
    >
      <PowerSettingsNewRounded />
    </IconButton>
  );
};
