bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx
Anton Georgiev a9f2a18475 Merge pull request #3834 from antobinary/audio-restructuring
[HTML5] Audio restructuring part 1
2017-04-20 16:00:59 -04:00

34 lines
875 B
JavaScript

import React, { Component, PropTypes } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import Settings from './component';
import SettingsService from '/imports/ui/services/settings';
import {
getClosedCaptionLocales,
getUserRoles,
updateSettings,
getAvailableLocales,
} from './service';
class SettingsContainer extends Component {
render() {
return (
<Settings {...this.props}/>
);
}
}
export default createContainer(() => {
return {
audio: SettingsService.audio,
video: SettingsService.video,
application: SettingsService.application,
cc: SettingsService.cc,
participants: SettingsService.participants,
updateSettings,
locales: getClosedCaptionLocales(),
availableLocales: getAvailableLocales(),
isModerator: getUserRoles() === 'MODERATOR',
};
}, SettingsContainer);