import React from 'react'; const PropTypes = require('prop-types'); import {ApolloProvider} from 'react-apollo'; class TalkProvider extends React.Component { getChildContext() { return { eventEmitter: this.props.eventEmitter, pym: this.props.pym, plugins: this.props.plugins, }; } render() { const {children, client, store, plugins} = this.props; return ( {children} ); } } TalkProvider.childContextTypes = { pym: PropTypes.object, eventEmitter: PropTypes.object, plugins: PropTypes.array, }; export default TalkProvider;