lbry-desktop/ui/component/page/index.js

13 lines
488 B
JavaScript
Raw Normal View History

2019-09-26 12:07:11 -04:00
import { connect } from 'react-redux';
import { makeSelectFileRenderModeForUri } from 'redux/selectors/content';
import { selectClientSetting } from 'redux/selectors/settings';
import * as SETTINGS from 'constants/settings';
2018-03-26 14:32:43 -07:00
import Page from './view';
2019-06-17 16:32:38 -04:00
2021-01-08 10:21:27 -05:00
const select = (state, props) => ({
renderMode: makeSelectFileRenderModeForUri(state.content.primaryUri)(state),
videoTheaterMode: selectClientSetting(state, SETTINGS.VIDEO_THEATER_MODE),
2021-01-08 10:21:27 -05:00
});
export default connect(select)(Page);