bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/container.jsx
2023-02-21 10:29:51 -03:00

27 lines
942 B
JavaScript

import { withTracker } from "meteor/react-meteor-data";
import React from "react";
import SettingsService from '/imports/ui/services/settings';
import Cursors from "./component";
import Service from "./service";
import { omit } from 'radash';
const CursorsContainer = (props) => {
return <Cursors {...omit(props, ['tldrawAPI'])} />
};
export default
withTracker((params) => {
return {
application: SettingsService?.application,
currentUser: params.currentUser,
publishCursorUpdate: Service.publishCursorUpdate,
otherCursors: Service.getCurrentCursors(params.whiteboardId),
currentPoint: params.tldrawAPI?.currentPoint,
tldrawCamera: params.tldrawAPI?.getPageState().camera,
isViewersCursorLocked: params.isViewersCursorLocked,
hasMultiUserAccess: params.hasMultiUserAccess,
isMultiUserActive: params.isMultiUserActive,
};
})(CursorsContainer)
;