import React, { PureComponent } from 'react'; import cx from 'classnames'; import { styles } from './styles.scss'; import DesktopShare from './desktop-share/component'; import ActionsDropdown from './actions-dropdown/container'; import AudioControlsContainer from '../audio/audio-controls/container'; import JoinVideoOptionsContainer from '../video-provider/video-button/container'; import CaptionsButtonContainer from '/imports/ui/components/actions-bar/captions/container'; import PresentationOptionsContainer from './presentation-options/component'; import { ACTIONSBAR_HEIGHT } from '/imports/ui/components/layout/layout-manager'; class ActionsBar extends PureComponent { render() { const { amIPresenter, handleShareScreen, handleUnshareScreen, isVideoBroadcasting, amIModerator, screenSharingCheck, enableVideo, isLayoutSwapped, toggleSwapLayout, handleTakePresenter, intl, isSharingVideo, screenShareEndAlert, stopExternalVideoShare, screenshareDataSavingSetting, isCaptionsAvailable, isMeteorConnected, isPollingEnabled, isThereCurrentPresentation, allowExternalVideo, } = this.props; const actionBarClasses = {}; actionBarClasses[styles.centerWithActions] = amIPresenter; actionBarClasses[styles.center] = true; actionBarClasses[styles.mobileLayoutSwapped] = isLayoutSwapped && amIPresenter; return (