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