lbry-desktop/ui/component/page/index.js
Rave | 図書館猫 089fc52a7d
Filepage theater fix (#1366)
* Disable theater mode for non-video files

* Add black background to image container
2022-04-20 10:20:15 +02:00

12 lines
488 B
JavaScript

import { connect } from 'react-redux';
import { makeSelectFileRenderModeForUri } from 'redux/selectors/content';
import { selectClientSetting } from 'redux/selectors/settings';
import * as SETTINGS from 'constants/settings';
import Page from './view';
const select = (state, props) => ({
renderMode: makeSelectFileRenderModeForUri(state.content.primaryUri)(state),
videoTheaterMode: selectClientSetting(state, SETTINGS.VIDEO_THEATER_MODE),
});
export default connect(select)(Page);