import { connect } from 'react-redux'
import { play, pause, changeQueueItem, getMedia, getMediaSuccess, getMediaError } from '../modules/player'
import { fetchQueue } from '../../Queue/modules/queue'
import PlayerView from '../components/PlayerView'

const mapActionCreators = {
  // player
  play,
  pause,
  changeQueueItem,
  getMedia,
  getMediaSuccess,
  getMediaError,
  // queue
  fetchQueue
}

const mapStateToProps = (state) => ({
  queue: state.queue,
  isPlaying: state.player.isPlaying,
  isFetching: state.player.isFetching,
})

export default connect(mapStateToProps, mapActionCreators)(PlayerView)

@@ -52,33 +52,16 @@
 , pause,
- changeQueueItem,
  getMedi
@@ -125,63 +125,8 @@
 er'%0A
-import %7B fetchQueue %7D from '../../Queue/modules/queue'%0A
 impo
@@ -204,20 +204,8 @@
 = %7B%0A
-  // player%0A
   pl
@@ -221,27 +221,8 @@
 se,%0A
-  changeQueueItem,%0A
   ge
@@ -248,16 +248,16 @@
 uccess,%0A
+
   getMed
@@ -269,32 +269,8 @@
 or,%0A
-  // queue%0A  fetchQueue%0A
 %7D%0A%0Ac

remove fetchQueue from container