import React, { useContext } from 'react'; import { AppContext } from './ContextProvider'; import { useFormInput } from '../helpers/Hooks'; import {ToCoins, ToDate} from '../helpers/utils'; const Miner = () => { const { actions, state } = useContext(AppContext); const { addWallet } = actions; const { user } = state; const { wallets } = user; const { value: address, bind: bindAddress } = useFormInput(''); return (
{ e.preventDefault(); addWallet(address); }} >

{!wallets ? 'you miner? your wow address miner pleas? ->' : 'add more address miner! ->'}

{wallets && Object.keys(wallets).map(wallet =>
{wallet}
last hashe:
all hashe: {wallets[wallet].totalHashes}
all pay:
still wait pay:
)}
) }; export default Miner;