bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/container.jsx

27 lines
937 B
React
Raw Normal View History

2022-04-05 22:49:13 +08:00
import { withTracker } from "meteor/react-meteor-data";
import React from "react";
import SettingsService from '/imports/ui/services/settings';
2022-04-05 22:49:13 +08:00
import Cursors from "./component";
import Service from "./service";
2023-02-14 03:33:06 +08:00
import _ from 'lodash';
2022-04-05 22:49:13 +08:00
const CursorsContainer = (props) => {
2023-02-14 03:33:06 +08:00
return <Cursors {..._.omit(props, ['tldrawAPI'])} />
2022-04-05 22:49:13 +08:00
};
2022-06-02 23:00:28 +08:00
export default
withTracker((params) => {
return {
application: SettingsService?.application,
2022-06-02 23:00:28 +08:00
currentUser: params.currentUser,
publishCursorUpdate: Service.publishCursorUpdate,
otherCursors: Service.getCurrentCursors(params.whiteboardId),
2023-02-14 03:33:06 +08:00
currentPoint: params.tldrawAPI?.currentPoint,
tldrawCamera: params.tldrawAPI?.getPageState().camera,
2022-06-02 23:00:28 +08:00
isViewersCursorLocked: params.isViewersCursorLocked,
hasMultiUserAccess: params.hasMultiUserAccess,
isMultiUserActive: params.isMultiUserActive,
2022-06-02 23:00:28 +08:00
};
})(CursorsContainer)
;