import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect'; // import { ErrorSection, LoadingSection, Table } from 'state-template';
// TODO: MOVE TO ST

import Page from '../../components/Page';
import * as actions from './actions';
import * as selectors from './selectors';
export var Auth =
/*#__PURE__*/
function (_React$PureComponent) {
  _inherits(Auth, _React$PureComponent);

  function Auth() {
    _classCallCheck(this, Auth);

    return _possibleConstructorReturn(this, _getPrototypeOf(Auth).apply(this, arguments));
  }

  _createClass(Auth, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var login = this.props.login;
      login({
        fedassisteml: 'ryan.vollmer@state.ca.gov',
        fedassistpwd: '213'
      });
    }
  }, {
    key: "render",
    value: function render() {
      return React.createElement(Page, {
        title: 'Login'
      }, "content...");
    }
  }]);

  return Auth;
}(React.PureComponent);
export var mapStateToProps = createStructuredSelector({// submissionList: selectors.selectSubmissionList(),
});
export var mapDispatchToProps = function mapDispatchToProps(dispatch) {
  return {
    login: function login(props) {
      return dispatch(actions.loginRequest(props));
    }
  };
};
var withRedux = connect(mapStateToProps, mapDispatchToProps)(Auth);
export default withRedux;