bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/fullscreen-button/container.jsx

14 lines
499 B
React
Raw Normal View History

import React from 'react';
import FullscreenButtonComponent from './component';
2019-07-27 00:48:51 +08:00
import FullscreenService from './service';
const FullscreenButtonContainer = props => <FullscreenButtonComponent {...props} />;
export default (props) => {
2019-07-27 00:48:51 +08:00
const handleToggleFullScreen = ref => FullscreenService.toggleFullScreen(ref);
const isIphone = (navigator.userAgent.match(/iPhone/i)) ? true : false;
return (
2019-06-17 23:55:53 +08:00
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
);
};