2019-04-24 22:20:53 +08:00
|
|
|
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);
|
2019-04-24 22:20:53 +08:00
|
|
|
return (
|
2019-06-17 23:55:53 +08:00
|
|
|
<FullscreenButtonContainer {...props} {...{ handleToggleFullScreen, isIphone }} />
|
2019-04-24 22:20:53 +08:00
|
|
|
);
|
|
|
|
};
|