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