bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx
2019-07-26 13:48:51 -03:00

14 lines
482 B
JavaScript

import React from 'react';
import FullscreenButtonComponent from './component';
import FullscreenService from './service';
const FullscreenButtonContainer = props => <FullscreenButtonComponent {...props} />;
export default (props) => {
const handleToggleFullScreen = ref => FullscreenService.toggleFullScreen(ref);
const isIphone = navigator.userAgent.match(/iPhone/i);
return (
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
);
};