import React from "react"; import { connect } from "react-redux"; import { setVolume } from "../actionCreators"; import { SET_FOCUS, UNSET_FOCUS } from "../actionTypes"; const Volume = props => ( ); const mapStateToProps = state => state.media; const mapDispatchToProps = dispatch => ({ showMarquee: () => dispatch({ type: SET_FOCUS, input: "volume" }), hideMarquee: () => dispatch({ type: UNSET_FOCUS }), setVolume: e => dispatch(setVolume(e.target.value)) }); export default connect(mapStateToProps, mapDispatchToProps)(Volume);