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

13 lines
488 B
JavaScript
Raw Normal View History

2019-09-26 18:07:11 +02: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 23:32:43 +02:00
import Page from './view';
2019-06-17 22:32:38 +02:00
2021-01-08 16:21:27 +01:00
const select = (state, props) => ({
renderMode: makeSelectFileRenderModeForUri(state.content.primaryUri)(state),
videoTheaterMode: selectClientSetting(state, SETTINGS.VIDEO_THEATER_MODE),
2021-01-08 16:21:27 +01:00
});
export default connect(select)(Page);