import React, { PureComponent } from 'react' import { Link } from '@reach/router' import { Consumer } from '../store/createContext' import Total from '../components/Total' import Account from '../components/Account' import Ticker from '../components/Ticker' import Spinner from '../components/Spinner' import './Home.css' export default class Home extends PureComponent { render() { return ( {({ isLoading, accounts, needsConfig }) => ( <> Settings
{needsConfig ? ( 'Needs config' ) : isLoading ? ( ) : ( <>
{accounts.map((account, i) => ( ))}
)}
)}
) } }