bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-provider/fullscreen-button/container.jsx
2019-06-17 15:55:53 +00:00

14 lines
514 B
JavaScript

import React from 'react';
import FullscreenButtonComponent from './component';
import { toggleFullScreen } from '/imports/ui/components/nav-bar/settings-dropdown/service';
const FullscreenButtonContainer = props => <FullscreenButtonComponent {...props} />;
export default (props) => {
const handleToggleFullScreen = ref => toggleFullScreen(ref);
const isIphone = navigator.userAgent.match(/iPhone/i);
return (
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
);
};