mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
13 lines
No EOL
363 B
JavaScript
13 lines
No EOL
363 B
JavaScript
import React from 'react';
|
|
import Messages from "../messages.js";
|
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
const FlashContainer = createContainer(() => {
|
|
return {
|
|
messages: Messages.collection.find({show: true}).fetch()
|
|
}
|
|
}, params => <params.component {...params} />);
|
|
|
|
module.exports = FlashContainer;
|
|
export default FlashContainer; |