text: import React, {Component} from 'react'
  import {connect} from 'react-redux'
  import {openAccountResetPage} from '../../actions/login'
  import {relogin, login} from '../../actions/login'
  import {routeAppend} from '../../actions/router'
  import Render from './index.render'
  
  class Login extends Component {
    render () {
      return <Render {...this.props} />
    }
  
    static parseRoute (store, currentPath, nextPath) {
      return {componentAtTop: {}}
    }
  }
  
  Login.propTypes = Render.propTypes
  
  export default connect(
    store => {
      const users = store.login && store.login.configuredAccounts && store.login.configuredAccounts.map(c => c.username) || []
      let lastUser = store.config && store.config.status && store.config.status.user && store.config.status.user.username
  
      if (users.indexOf(lastUser) === -1 && users.length) {
        lastUser = users[0]
      }
  
      return {
        serverURI: /* store.config && store.config.config && store.config.config.serverURI */'https://keybase.io',
        users, lastUser,
        error: store.login.loginError,
        waitingForResponse: store.login.waitingForResponse
      }
    },
    dispatch => {
      return {
        onForgotPassphrase: () => dispatch(openAccountResetPage()),
        onLogin: (user, passphrase, store) => dispatch(relogin(user, passphrase, store)),
        onSignup: () => dispatch(routeAppend(['signup'])),
        onSomeoneElse: () => { dispatch(login()) }
      }
    }
  )(Login)
  