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

27 lines
994 B
React
Raw Normal View History

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';
const LayoutModalContainer = (props) => {
2023-07-08 00:22:34 +08:00
const { intl, setIsOpen,onRequestClose, isOpen, isModerator, isPresenter,
application, updateSettings, } = props;
2024-01-30 21:03:11 +08:00
const setLocalSettings = useUserChangedLocalSettings();
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
}} />};
export default withTracker(({ amIModerator }) => ({
application: SettingsService.application,
updateSettings,
isPresenter: isPresenter(),
isModerator: amIModerator,
}))(LayoutModalContainer);