bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/mute-button/component.jsx
2016-11-18 13:35:02 -08:00

28 lines
547 B
JavaScript
Executable File

import React from 'react';
import Button from '/imports/ui/components/button/component';
export default class MuteAudioComponent extends React.Component {
render() {
const { isMuted, muteUser, unmuteUser } = this.props;
let onClick = muteUser;
let label = 'Mute';
if (isMuted) {
onClick = unmuteUser;
label = 'Unmute';
}
return (
<Button
onClick={onClick}
label={label}
color={'primary'}
icon={'audio'}
size={'lg'}
circle={true}
/>
);
}
}