19 lines
559 B
JavaScript
19 lines
559 B
JavaScript
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 }) => {
|
|
return {
|
|
currentUser,
|
|
publishCursorUpdate,
|
|
otherCursors: Service.getCursorCur(),
|
|
tldrawAPI,
|
|
};
|
|
})(CursorsContainer); |