import React, { Component } from 'react';
import { connect }            from 'react-redux';
import {withRouter} from 'react-router';
import {bindActionCreators} from 'redux';
import {Login} from 'components';
import {auth} from 'utils/auth';
const mapStateToProps = (state) => ({
});
const mapDispatchToProps = (dispatch) => ({
  auth: bindActionCreators(Object.assign({}, auth), dispatch)
});
export  class LoginView extends Component {
  render() {
    console.log('LoginView this.props.', this.props);
    return (
      <div>
        <Login
          auth={this.props.auth}
          history={this.props.history}/>
      </div>
    );
  }
}

export default connect(mapStateToProps, mapDispatchToProps)(LoginView);
