bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx

28 lines
748 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
2017-03-29 02:41:48 +08:00
import SettingsService from '/imports/ui/services/settings';
import Settings from './component';
2017-03-29 02:41:48 +08:00
import {
getClosedCaptionLocales,
getUserRoles,
updateSettings,
getAvailableLocales,
} from './service';
const SettingsContainer = props => (
<Settings {...props} />
);
2016-12-23 09:48:19 +08:00
export default withTracker(() => ({
2017-06-03 03:25:02 +08:00
audio: SettingsService.audio,
video: SettingsService.video,
application: SettingsService.application,
cc: SettingsService.cc,
participants: SettingsService.participants,
updateSettings,
locales: getClosedCaptionLocales(),
availableLocales: getAvailableLocales(),
isModerator: getUserRoles() === 'MODERATOR',
}))(SettingsContainer);