import { Row, Card, Col, Avatar, Typography } from 'antd' import { useRootDispatch, RootDispatch } from 'store' import { connectWallet } from 'store/wallet.reducer' import { ExodusWallet } from '../../lib' import EXODUS from 'static/images/wallet/exodus.svg' const Exodus = () => { const dispatch = useRootDispatch() const connect = async () => { const { exodus } = window if (!exodus) return window.notify({ type: 'warning', description: 'Exodus Wallet is not installed. If this is the first time you install Exodus wallet, please restart your browser to complete the setup.', }) const wallet = new ExodusWallet() try { await dispatch(connectWallet(wallet)).unwrap() } catch (er: any) { return window.notify({ type: 'error', description: er.message }) } } return ( Exodus ) } export default Exodus