bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/notes/container.jsx

24 lines
703 B
React
Raw Normal View History

import React from 'react';
2018-12-13 04:10:27 +08:00
import { withTracker } from 'meteor/react-meteor-data';
import Notes from './component';
import Service from './service';
2021-09-11 04:48:52 +08:00
import { layoutSelectInput, layoutDispatch } from '../layout/context';
2018-12-13 04:10:27 +08:00
const Container = ({ ...props }) => {
2021-09-11 04:48:52 +08:00
const cameraDock = layoutSelectInput((i) => i.cameraDock);
2021-08-19 21:05:25 +08:00
const { isResizing } = cameraDock;
2021-09-11 04:48:52 +08:00
const layoutContextDispatch = layoutDispatch();
return <Notes {...{ layoutContextDispatch, isResizing, ...props }} />;
2021-05-18 04:25:07 +08:00
};
2018-12-13 04:10:27 +08:00
2019-01-10 02:06:23 +08:00
export default withTracker(() => {
const hasPermission = Service.hasPermission();
const isRTL = document.documentElement.getAttribute('dir') === 'rtl';
2018-12-13 04:10:27 +08:00
return {
hasPermission,
isRTL,
2018-12-13 04:10:27 +08:00
};
})(Container);