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}/>
|
|
|
|
};
|
|
|
|
|
2022-04-11 00:31:12 +08:00
|
|
|
export default withTracker(({ currentUser, publishCursorUpdate, tldrawAPI }) => {
|
2022-04-05 22:49:13 +08:00
|
|
|
return {
|
|
|
|
currentUser,
|
|
|
|
publishCursorUpdate,
|
|
|
|
otherCursors: Service.getCursorCur(),
|
2022-04-11 00:31:12 +08:00
|
|
|
tldrawAPI,
|
2022-04-05 22:49:13 +08:00
|
|
|
};
|
|
|
|
})(CursorsContainer);
|