import React, { PureComponent } from 'react'; import CaptionsButtonContainer from '/imports/ui/components/actions-bar/captions/container'; import withShortcutHelper from '/imports/ui/components/shortcut-help/service'; import Styled from './styles'; import ActionsDropdown from './actions-dropdown/container'; import ScreenshareButtonContainer from '/imports/ui/components/actions-bar/screenshare/container'; import AudioControlsContainer from '../audio/audio-controls/container'; import JoinVideoOptionsContainer from '../video-provider/video-button/container'; import PresentationOptionsContainer from './presentation-options/component'; class ActionsBar extends PureComponent { render() { const { amIPresenter, amIModerator, enableVideo, isLayoutSwapped, toggleSwapLayout, handleTakePresenter, intl, isSharingVideo, hasScreenshare, stopExternalVideoShare, isCaptionsAvailable, isMeteorConnected, isPollingEnabled, isSelectRandomUserEnabled, isRaiseHandButtonEnabled, isPresentationDisabled, isThereCurrentPresentation, allowExternalVideo, setEmojiStatus, currentUser, shortcuts, layoutContextDispatch, actionsBarStyle, isOldMinimizeButtonEnabled, } = this.props; return ( {isCaptionsAvailable ? ( ) : null} {enableVideo ? ( ) : null} {!isOldMinimizeButtonEnabled || (isOldMinimizeButtonEnabled && isLayoutSwapped && !isPresentationDisabled) ? ( ) : null} {isRaiseHandButtonEnabled ? ( { setEmojiStatus( currentUser.userId, currentUser.emoji === 'raiseHand' ? 'none' : 'raiseHand', ); }} /> ) : null} ); } } export default withShortcutHelper(ActionsBar, ['raiseHand']);