bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx
Oleksandr Zhurbenko 251bd22738 PR review fixes
2017-09-06 12:36:52 -07:00

33 lines
869 B
JavaScript

import React, { Component } from 'react';
import PropTypes from 'prop-types';
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(() => ({
audio: SettingsService.audio,
video: SettingsService.video,
application: SettingsService.application,
cc: SettingsService.cc,
participants: SettingsService.participants,
updateSettings,
locales: getClosedCaptionLocales(),
availableLocales: getAvailableLocales(),
isModerator: getUserRoles() === 'MODERATOR',
}), SettingsContainer);