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

19 lines
559 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 Auth from "/imports/ui/services/auth";
import Cursors from "./component";
import Service from "./service";
const CursorsContainer = (props) => {
return <Cursors {...props} publishCursorUpdate={props.publishCursorUpdate}/>
};
export default withTracker(({ currentUser, publishCursorUpdate, tldrawAPI }) => {
2022-04-05 22:49:13 +08:00
return {
currentUser,
publishCursorUpdate,
otherCursors: Service.getCursorCur(),
tldrawAPI,
2022-04-05 22:49:13 +08:00
};
})(CursorsContainer);