2019-09-26 18:07:11 +02:00
|
|
|
import { connect } from 'react-redux';
|
2022-04-20 10:20:15 +02:00
|
|
|
import { makeSelectFileRenderModeForUri } from 'redux/selectors/content';
|
2021-11-23 05:29:04 +01:00
|
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
2021-10-17 10:36:14 +02:00
|
|
|
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) => ({
|
2022-04-20 10:20:15 +02:00
|
|
|
renderMode: makeSelectFileRenderModeForUri(state.content.primaryUri)(state),
|
2021-11-23 05:29:04 +01:00
|
|
|
videoTheaterMode: selectClientSetting(state, SETTINGS.VIDEO_THEATER_MODE),
|
2021-01-08 16:21:27 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(Page);
|