import { h, Component } from 'preact'; // import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import * as authActions from './auth.actions'; class Logout extends Component { componentWillMount(props){ this.props.actions.logout() } render(){ return } } const mapStateToProps = (state) => ({ }); const mapDispatchToProps = (dispatch) => ({ actions: bindActionCreators(authActions, dispatch) }); export default connect(mapStateToProps, mapDispatchToProps)(Logout);