2022-04-05 22:49:13 +08:00
|
|
|
import { withTracker } from "meteor/react-meteor-data";
|
|
|
|
import React from "react";
|
2022-07-07 01:17:05 +08:00
|
|
|
import SettingsService from '/imports/ui/services/settings';
|
2022-04-05 22:49:13 +08:00
|
|
|
import Cursors from "./component";
|
|
|
|
import Service from "./service";
|
|
|
|
|
|
|
|
const CursorsContainer = (props) => {
|
2022-05-07 00:37:43 +08:00
|
|
|
return <Cursors {...props}/>
|
2022-04-05 22:49:13 +08:00
|
|
|
};
|
|
|
|
|
2022-06-02 23:00:28 +08:00
|
|
|
export default
|
|
|
|
withTracker((params) => {
|
|
|
|
return {
|
2022-07-07 01:17:05 +08:00
|
|
|
application: SettingsService?.application,
|
2022-06-02 23:00:28 +08:00
|
|
|
currentUser: params.currentUser,
|
|
|
|
publishCursorUpdate: Service.publishCursorUpdate,
|
|
|
|
otherCursors: Service.getCurrentCursors(params.whiteboardId),
|
|
|
|
tldrawAPI: params.tldrawAPI,
|
|
|
|
isViewersCursorLocked: params.isViewersCursorLocked,
|
2022-06-29 04:12:14 +08:00
|
|
|
hasMultiUserAccess: params.hasMultiUserAccess,
|
2022-06-30 04:25:32 +08:00
|
|
|
isMultiUserActive: params.isMultiUserActive,
|
2022-06-02 23:00:28 +08:00
|
|
|
};
|
|
|
|
})(CursorsContainer)
|
|
|
|
;
|