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

14 lines
514 B
React
Raw Normal View History

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);
2019-06-17 23:55:53 +08:00
const isIphone = navigator.userAgent.match(/iPhone/i);
return (
2019-06-17 23:55:53 +08:00
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
);
};