mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
18 lines
315 B
React
18 lines
315 B
React
![]() |
const CurrentUserContainer = React.createClass({
|
||
|
|
||
|
mixins: [ReactMeteorData],
|
||
|
|
||
|
getMeteorData() {
|
||
|
|
||
|
return {
|
||
|
currentUser: Meteor.user()
|
||
|
};
|
||
|
},
|
||
|
|
||
|
render() {
|
||
|
return React.cloneElement(this.props.children, { currentUser: this.data.currentUser });
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
module.exports = CurrentUserContainer;
|