bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/mute-button/container.jsx
2016-11-15 13:00:28 -08:00

25 lines
690 B
JavaScript
Executable File

import React from 'react';
import {createContainer} from 'meteor/react-meteor-data';
import {callServer} from '/imports/ui/services/api';
import Button from '/imports/ui/components/button/component';
import Users from '/imports/api/users/index';
import Auth from '/imports/ui/services/auth/index';
import MuteAudioComponent from './component';
class MuteAudioContainer extends React.Component {
render() {
return (
<MuteAudioComponent
isMuted = {this.props.isMuted}
/>
);
}
}
export default createContainer((params) => {
const data = {
isMuted: Users.findOne({ userId: Auth.userID }).user.voiceUser.muted,
};
return data;
}, MuteAudioContainer);