bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx
2017-05-16 09:22:59 -07:00

34 lines
881 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(function () {
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);