import React, { ReactElement } from 'react' import loadable from '@loadable/component' import { Helmet } from 'react-helmet' import { Web3ReactProvider } from '@web3-react/core' import { Author } from '../@types/Site' import { useSiteMetadata } from '../hooks/use-site-metadata' import { getLibrary } from '../hooks/use-web3' import Qr from '../components/atoms/Qr' import Icon from '../components/atoms/Icon' import { thanks, title, web3, loading, coins as styleCoins, coin, buttonBack } from './thanks.module.css' const LazyWeb3Donation = loadable( () => import('../components/molecules/Web3Donation') ) const Coin = ({ address, author }: { address: string; author: Author }) => (
) const BackButton = () => ( ) export default function Thanks(): ReactElement { const { author } = useSiteMetadata() const coins = Object.keys(author).filter( (key) => key === 'bitcoin' || key === 'ether' ) return ( <> Say thanks

Say Thanks

Web3 Wallet

Send Ether with MetaMask or Brave.

Loading...
} address={author.ether} />

Any other wallets

Send Bitcoin or Ether from any wallet.

{coins.map((address: string) => ( ))}
) }