bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx
2019-06-12 15:40:58 -03:00

25 lines
813 B
JavaScript
Executable File

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import browser from 'browser-detect';
import SettingsDropdown from './component';
import { toggleFullScreen } from './service';
const SettingsDropdownContainer = props => (
<SettingsDropdown {...props} />
);
export default withTracker((props) => {
const isFullscreen = Session.get('isFullscreen');
const handleToggleFullscreen = () => toggleFullScreen();
const BROWSER_RESULTS = browser();
const isSafari = BROWSER_RESULTS.name === 'safari';
const noIOSFullscreen = isSafari && BROWSER_RESULTS.versionNumber < 12;
return {
amIModerator: props.amIModerator,
handleToggleFullscreen,
isFullscreen,
noIOSFullscreen,
meteorIsConnected: Meteor.status().connected,
};
})(SettingsDropdownContainer);