bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/audio-menu/component.jsx
2016-12-20 11:45:48 -08:00

39 lines
879 B
JavaScript
Executable File

import React from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import Button from '/imports/ui/components/button/component';
import Users from '/imports/api/users/index';
import Auth from '/imports/ui/services/auth/index';
export default class JoinAudioOptions extends React.Component {
renderLeaveButton() {
return (
<Button
onClick={this.props.close}
label={'Leave Audio'}
color={'danger'}
icon={'mute'}
size={'lg'}
circle={true}
/>
);
}
render() {
if (this.props.isInAudio || this.props.isInListenOnly) {
return this.renderLeaveButton();
}
return (
<Button
onClick={this.props.open}
label={'Join Audio'}
color={'primary'}
icon={'unmute'}
size={'lg'}
circle={true}
/>
);
}
}