import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Retrospective from '../components/Retrospective'
import LabelModal from '../components/LabelModal'
import Alert from '../components/Alert'
import { getAlert, getDragStartId, getLabelModal, getLabels, getUsers, getSubscriptions } from '../reducers'
import ActionDispatcher from '../actions'

class App extends Component {
  render() {
    const { alert, dragStartId, labelModal, labels, users, actions } = this.props
    return (
      <div>
        <Alert alert={alert} actions={actions} />
        <Retrospective dragStartId={dragStartId} labels={labels} users={users} actions={actions} />
        <LabelModal isOpen={labelModal.isOpen}
                    clientX={labelModal.clientX}
                    clientY={labelModal.clientY}
                    label={labelModal.label}
                    actions={actions} />
     </div>
    )
  }
}

App.propTypes = {
  dragStartId: PropTypes.number,
  labelModal: PropTypes.object.isRequired,
  labels: PropTypes.object.isRequired,
  users: PropTypes.array.isRequired,
  actions: PropTypes.object.isRequired
}

function mapStateToProps(state) {
  return {
    alert: getAlert(state),
    dragStartId: getDragStartId(state),
    labelModal: getLabelModal(state),
    labels: getLabels(state),
    users: getUsers(state),
    subscriptions: getSubscriptions(state),
    actions: state.actions
  }
}

function mergeProps(stateProps, dispatchProps, ownProps) {
  return Object.assign({}, ownProps, stateProps, { actions: new ActionDispatcher(stateProps, dispatchProps.dispatch) })
}

export default connect(
  mapStateToProps,
  null,
  mergeProps
)(App)

@@ -111,51 +111,8 @@
 ux'%0A
-import %7B bindActionCreators %7D from 'redux'%0A
 impo

Fix unused variable