18 lines
532 B
React
18 lines
532 B
React
|
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 }) => {
|
||
|
return {
|
||
|
currentUser,
|
||
|
publishCursorUpdate,
|
||
|
otherCursors: Service.getCursorCur(),
|
||
|
};
|
||
|
})(CursorsContainer);
|