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';
|
2017-02-22 04:29:36 +08:00
|
|
|
import { getSettingsFor, updateSettings, getClosedCaptionLocales } from './service.js';
|
2016-12-21 02:06:01 +08:00
|
|
|
|
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'),
|
2017-02-22 04:29:36 +08:00
|
|
|
video: getSettingsFor('video'),
|
|
|
|
application: getSettingsFor('application'),
|
2017-02-16 02:49:40 +08:00
|
|
|
cc: getSettingsFor('cc'),
|
|
|
|
participants: getSettingsFor('participants'),
|
|
|
|
updateSettings,
|
2017-02-22 04:29:36 +08:00
|
|
|
locales: getClosedCaptionLocales(),
|
2017-01-27 23:41:11 +08:00
|
|
|
};
|
|
|
|
}, SettingsContainer);
|