2022-02-23 01:41:16 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
|
|
import SettingsService from '/imports/ui/services/settings';
|
|
|
|
import LayoutModalComponent from './component';
|
|
|
|
|
|
|
|
import {
|
|
|
|
updateSettings,
|
|
|
|
isPresenter,
|
|
|
|
} from '/imports/ui/components/settings/service';
|
|
|
|
|
2023-03-22 01:55:43 +08:00
|
|
|
const LayoutModalContainer = (props) => {
|
|
|
|
return <LayoutModalComponent {...props} />};
|
2022-02-23 01:41:16 +08:00
|
|
|
|
2023-03-22 01:55:43 +08:00
|
|
|
export default withTracker(({ amIModerator }) => ({
|
2022-02-23 01:41:16 +08:00
|
|
|
application: SettingsService.application,
|
|
|
|
updateSettings,
|
|
|
|
isPresenter: isPresenter(),
|
2022-05-12 05:48:12 +08:00
|
|
|
isModerator: amIModerator,
|
2022-02-23 01:41:16 +08:00
|
|
|
showToggleLabel: false,
|
2023-03-22 01:55:43 +08:00
|
|
|
}))(LayoutModalContainer);
|