import React, { useContext, } from 'react'; import { AppViewer } from './AppViewer'; import Frame from 'react-frame-component'; import { MyContext, isMobile } from '../../App'; const AppViewerContainer = React.forwardRef(({ app, isSelected, hide, isDevMode, customHeight, skipAuth }, ref) => { const { rootHeight } = useContext(MyContext); return ( } style={{ display: (!isSelected || hide) && 'none', height: customHeight ? customHeight : !isMobile ? '100vh' : `calc(${rootHeight} - 60px - 45px)`, border: 'none', width: '100%', overflow: 'hidden', }} > ); }); export default AppViewerContainer;