bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx
2017-03-16 16:52:43 +00:00

32 lines
797 B
JavaScript

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