UNPKG

node-red-contrib-chatbot

Version:

REDBot a Chat bot for a full featured chat bot for Telegram, Facebook Messenger and Slack. Almost no coding skills required

13 lines (11 loc) 314 B
import React from 'react'; import AppContext from '../common/app-context'; export default (Component) => { return (props) => ( <AppContext.Consumer> {({ dispatch }) => { return <Component {...props} dispatch={dispatch}>{props.children}</Component>; }} </AppContext.Consumer> ); };