bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx
João Francisco Siebel 6bb031076b Resolve merge problems
2018-02-19 14:00:43 -03:00

29 lines
813 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import { withRouter } from 'react-router';
import SettingsService from '/imports/ui/services/settings';
import Settings from './component';
import {
getClosedCaptionLocales,
getUserRoles,
updateSettings,
getAvailableLocales,
} from './service';
const SettingsContainer = props => (
<Settings {...props} />
);
export default withRouter(withTracker(() => ({
audio: SettingsService.audio,
dataSaving: SettingsService.dataSaving,
application: SettingsService.application,
cc: SettingsService.cc,
participants: SettingsService.participants,
updateSettings,
locales: getClosedCaptionLocales(),
availableLocales: getAvailableLocales(),
isModerator: getUserRoles() === 'MODERATOR',
}))(SettingsContainer));