UNPKG

react-jplayer

Version:

Html5 audio and video player library for React

15 lines (10 loc) 432 B
import { connectWithId } from 'react-jplayer-utils'; import { setOption } from '../../actions/actions'; import FullScreen from './fullScreen'; const mapStateToProps = ({ jPlayers }, { id }) => ({ fullScreen: jPlayers[id].fullScreen, }); const mapDispatchToProps = { setFullScreen: (id, fullScreen) => setOption(id, 'fullScreen', fullScreen), }; export default connectWithId(mapStateToProps, mapDispatchToProps)(FullScreen);