14 lines
482 B
JavaScript
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 }} />
|
|
);
|
|
};
|