63 lines
1.7 KiB
JavaScript
Executable File
63 lines
1.7 KiB
JavaScript
Executable File
import React, { Component, PropTypes } from 'react';
|
|
import Button from '/imports/ui/components/button/component';
|
|
import styles from './styles.scss';
|
|
import EmojiContainer from './emoji-menu/container';
|
|
import ActionsDropdown from './actions-dropdown/component';
|
|
import JoinAudioOptionsContainer from './audio-menu/container';
|
|
import MuteAudioContainer from './mute-button/container';
|
|
import JoinVideo from './video-button/component';
|
|
|
|
export default class ActionsBar extends Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
renderForPresenter() {
|
|
return (
|
|
<div className={styles.actionsbar}>
|
|
<div className={styles.left}>
|
|
<ActionsDropdown />
|
|
</div>
|
|
<div className={styles.center}>
|
|
<MuteAudioContainer />
|
|
<JoinAudioOptionsContainer
|
|
handleJoinAudio={this.props.handleOpenJoinAudio}
|
|
handleCloseAudio={this.props.handleExitAudio}
|
|
|
|
/>
|
|
{/*<JoinVideo />*/}
|
|
<EmojiContainer />
|
|
</div>
|
|
<div className={styles.hidden}>
|
|
<ActionsDropdown />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
renderForUser() {
|
|
return (
|
|
<div className={styles.actionsbar}>
|
|
<div className={styles.center}>
|
|
<MuteAudioContainer />
|
|
<JoinAudioOptionsContainer
|
|
handleJoinAudio={this.props.handleOpenJoinAudio}
|
|
handleCloseAudio={this.props.handleExitAudio}
|
|
|
|
/>
|
|
{/*<JoinVideo />*/}
|
|
<EmojiContainer />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
render() {
|
|
const { isUserPresenter } = this.props;
|
|
|
|
return isUserPresenter ?
|
|
this.renderForPresenter() :
|
|
this.renderForUser();
|
|
}
|
|
}
|