import Events from '../components/Events';
import gimmeData from '../utils/gimmeData';
import { getUserId } from '../reducers/userReducer';

const getEventsAttendingUrl = (state) => `users/${getUserId(state)}/eventsAttending`;
export default gimmeData(getEventsAttendingUrl)(Events);

import Events from '../components/Events';
import gimmeData from '../utils/gimmeData';
import { isMusician, getUserId } from '../reducers/userReducer';

function mapStateToProps(state) {
  return {
    isMusician: isMusician(state)
  };
}

const getEventsAttendingUrl = (state) => `users/${getUserId(state)}/eventsAttending`;
export default gimmeData(getEventsAttendingUrl, mapStateToProps)(Events);

remove create event button from eventsattending