import { forwardRef } from 'react'; import { AppViewer } from './AppViewer'; import Frame from 'react-frame-component'; type AppViewerContainerProps = { app: any; isSelected: boolean; hide: boolean; isDevMode: boolean; customHeight?: string; skipAuth?: boolean; }; const AppViewerContainer = forwardRef< HTMLIFrameElement, AppViewerContainerProps >(({ app, isSelected, hide, isDevMode, customHeight, skipAuth }, ref) => { return ( } style={{ border: 'none', height: customHeight || '100vh', left: (!isSelected || hide) && '-200vw', overflow: 'hidden', position: (!isSelected || hide) && 'fixed', width: '100%', }} > ); }); export default AppViewerContainer;