@openocean.finance/widget
Version:
Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
12 lines • 590 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { PowerSettingsNewRounded } from '@mui/icons-material';
import { IconButton } from '@mui/material';
import { useAccountDisconnect, } from '@openocean.finance/wallet-management';
export const DisconnectIconButton = ({ account }) => {
const disconnect = useAccountDisconnect();
return (_jsx(IconButton, { size: "medium", onClick: async (e) => {
e.stopPropagation();
await disconnect(account);
}, children: _jsx(PowerSettingsNewRounded, {}) }));
};
//# sourceMappingURL=DisconnectIconButton.js.map