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