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

22 lines
738 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
2022-03-10 05:28:12 +08:00
import { withModalMounter } from '/imports/ui/components/common/modal/service';
import SettingsService from '/imports/ui/services/settings';
import LayoutModalComponent from './component';
import {
updateSettings,
isPresenter,
} from '/imports/ui/components/settings/service';
const LayoutModalContainer = (props) => <LayoutModalComponent {...props} />;
export default withModalMounter(withTracker(({ mountModal, amIModerator }) => ({
closeModal: () => mountModal(null),
application: SettingsService.application,
updateSettings,
isPresenter: isPresenter(),
isModerator: amIModerator,
showToggleLabel: false,
}))(LayoutModalContainer));