2019-04-24 22:20:53 +08:00
|
|
|
import React from 'react';
|
|
|
|
import FullscreenButtonComponent from './component';
|
2019-07-27 00:48:51 +08:00
|
|
|
import FullscreenService from './service';
|
2019-04-24 22:20:53 +08:00
|
|
|
|
|
|
|
const FullscreenButtonContainer = props => <FullscreenButtonComponent {...props} />;
|
|
|
|
|
|
|
|
export default (props) => {
|
2019-07-27 00:48:51 +08:00
|
|
|
const handleToggleFullScreen = ref => FullscreenService.toggleFullScreen(ref);
|
2020-10-15 22:20:06 +08:00
|
|
|
const isIphone = (navigator.userAgent.match(/iPhone/i)) ? true : false;
|
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
|
|
|
);
|
|
|
|
};
|