import React, { PureComponent } from 'react'; import cx from 'classnames'; import Button from '/imports/ui/components/button/component'; import CaptionsButtonContainer from '/imports/ui/components/actions-bar/captions/container'; import withShortcutHelper from '/imports/ui/components/shortcut-help/service'; import { styles } from './styles.scss'; 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, stopExternalVideoShare, isCaptionsAvailable, isMeteorConnected, isPollingEnabled, isSelectRandomUserEnabled, isRaiseHandButtonEnabled, isPresentationDisabled, isThereCurrentPresentation, allowExternalVideo, setEmojiStatus, currentUser, shortcuts, layoutContextDispatch, actionsBarStyle, } = this.props; return (
{isCaptionsAvailable ? ( ) : null}
{enableVideo ? ( ) : null}
{isLayoutSwapped && !isPresentationDisabled ? ( ) : null} {isRaiseHandButtonEnabled ? (
); } } export default withShortcutHelper(ActionsBar, ['raiseHand']);