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 (