bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/connection-status/modal/container.jsx

19 lines
772 B
React
Raw Normal View History

2020-04-10 01:01:46 +08:00
import React from 'react';
import _ from 'lodash';
2020-04-10 01:01:46 +08:00
import { withTracker } from 'meteor/react-meteor-data';
import { withModalMounter } from '/imports/ui/components/modal/service';
import Settings from '/imports/ui/services/settings';
2020-04-10 01:01:46 +08:00
import ConnectionStatusService from '../service';
import ConnectionStatusComponent from './component';
const connectionStatusContainer = props => <ConnectionStatusComponent {...props} />;
export default withModalMounter(withTracker(({ mountModal }) => ({
closeModal: (dataSaving, intl) => {
ConnectionStatusService.updateDataSavingSettings(dataSaving, intl);
mountModal(null);
},
2020-04-10 01:01:46 +08:00
connectionStatus: ConnectionStatusService.getConnectionStatus(),
dataSaving: _.clone(Settings.dataSaving),
2020-04-10 01:01:46 +08:00
}))(connectionStatusContainer));