import { connect } from 'react-redux';

import { fetchEvents } from '../../actions/events.js';

import AppHeader from './AppHeader.js';

const matchDispatchToProps = (dispatch) => ({
    fetchEvents: () => dispatch(fetchEvents()),
});

export default connect(
    null,
    matchDispatchToProps,
)(AppHeader);
