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

26 lines
726 B
React
Raw Normal View History

2017-01-27 23:41:11 +08:00
import React, { Component, PropTypes } from 'react';
2016-12-23 09:48:19 +08:00
import { createContainer } from 'meteor/react-meteor-data';
2017-02-16 02:49:40 +08:00
import _ from 'underscore';
2017-01-27 23:41:11 +08:00
import Settings from './component.jsx';
import { getSettingsFor, updateSettings, getClosedCaptionLocales } from './service.js';
2017-01-27 23:41:11 +08:00
class SettingsContainer extends Component {
2016-12-23 09:48:19 +08:00
render() {
return (
2017-02-16 02:49:40 +08:00
<Settings {...this.props}/>
2016-12-23 09:48:19 +08:00
);
}
}
export default createContainer(() => {
2017-01-27 23:41:11 +08:00
return {
2017-02-16 02:49:40 +08:00
audio: getSettingsFor('audio'),
video: getSettingsFor('video'),
application: getSettingsFor('application'),
2017-02-16 02:49:40 +08:00
cc: getSettingsFor('cc'),
participants: getSettingsFor('participants'),
updateSettings,
locales: getClosedCaptionLocales(),
2017-01-27 23:41:11 +08:00
};
}, SettingsContainer);