2016-11-16 05:00:28 +08:00
|
|
|
import React from 'react';
|
2017-04-29 04:01:02 +08:00
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
2016-12-09 02:11:49 +08:00
|
|
|
import MuteAudio from './component';
|
2017-09-25 23:39:56 +08:00
|
|
|
import Service from '../service';
|
2016-11-16 05:00:28 +08:00
|
|
|
|
2017-08-01 21:10:12 +08:00
|
|
|
const MuteAudioContainer = props => (<MuteAudio {...props} />);
|
2016-11-16 05:00:28 +08:00
|
|
|
|
2017-08-01 21:10:12 +08:00
|
|
|
export default createContainer(() => {
|
2017-09-25 23:39:56 +08:00
|
|
|
const toggleSelfVoice = Service.toggleSelfVoice;
|
|
|
|
const voiceUserData = Service.getVoiceUserData();
|
2016-12-09 02:11:49 +08:00
|
|
|
|
2016-11-16 05:00:28 +08:00
|
|
|
const data = {
|
2017-09-25 23:39:56 +08:00
|
|
|
toggleSelfVoice,
|
|
|
|
voiceUserData,
|
2016-11-16 05:00:28 +08:00
|
|
|
};
|
|
|
|
return data;
|
|
|
|
}, MuteAudioContainer);
|