import React from 'react'; import {connect} from 'react-redux'; import {play, pause, stop} from './actionCreators'; class Actions extends React.Component { constructor(props) { super(props); this.play = this.play.bind(this); this.pause = this.pause.bind(this); this.stop = this.stop.bind(this); } play() { this.props.dispatch(play(this.props.mediaPlayer)); } pause() { this.props.dispatch(pause(this.props.mediaPlayer)); } stop() { this.props.dispatch(stop(this.props.mediaPlayer)); } render() { return
; } } module.exports = connect((state) => state.media)(Actions);