bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/mute-button/container.jsx

18 lines
468 B
React
Raw Normal View History

import React from 'react';
2017-04-29 04:01:02 +08:00
import { createContainer } from 'meteor/react-meteor-data';
import MuteAudio from './component';
import Service from '../service';
2017-08-01 21:10:12 +08:00
const MuteAudioContainer = props => (<MuteAudio {...props} />);
2017-08-01 21:10:12 +08:00
export default createContainer(() => {
const toggleSelfVoice = Service.toggleSelfVoice;
const voiceUserData = Service.getVoiceUserData();
const data = {
toggleSelfVoice,
voiceUserData,
};
return data;
}, MuteAudioContainer);