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';
|
2024-01-30 21:03:11 +08:00
|
|
|
import useUserChangedLocalSettings from '/imports/ui/services/settings/hooks/useUserChangedLocalSettings';
|
2022-02-23 01:41:16 +08:00
|
|
|
|
2023-03-22 01:55:43 +08:00
|
|
|
const LayoutModalContainer = (props) => {
|
2023-07-08 00:22:34 +08:00
|
|
|
const { intl, setIsOpen,onRequestClose, isOpen, isModerator, isPresenter,
|
2023-04-12 23:51:23 +08:00
|
|
|
application, updateSettings, } = props;
|
2024-01-30 21:03:11 +08:00
|
|
|
const setLocalSettings = useUserChangedLocalSettings();
|
2023-04-12 23:51:23 +08:00
|
|
|
return <LayoutModalComponent {...{
|
2023-07-08 00:22:34 +08:00
|
|
|
intl, setIsOpen, isModerator, isPresenter,
|
2024-01-30 21:03:11 +08:00
|
|
|
application, updateSettings, onRequestClose, isOpen, setLocalSettings
|
2023-04-12 23:51:23 +08:00
|
|
|
}} />};
|
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,
|
2023-03-22 01:55:43 +08:00
|
|
|
}))(LayoutModalContainer);
|