FredrikOseberg / react-chatbot-kit

MIT License
330 stars 159 forks source link

Payload missing on chatbot custom component #176

Open cavaco-julianlosada opened 11 months ago

cavaco-julianlosada commented 11 months ago

Hi @FredrikOseberg, I noticed that by trying to setup a payload object with custom information for a bot message (I have a custom component for this) the only props that I receive are "message: string, loader: Comp", I was under the impression that payload should be present as prop here as well

<ConditionallyRender condition={!!customComponents?.botChatMessage} show={callIfExists(customComponents?.botChatMessage, {. message, loader: <Loader />, })}

I saw this on the codebase of the bot message component, Is it intentional or is this a bug?

manu-ho commented 10 months ago

I propose an implementation here: https://github.com/FredrikOseberg/react-chatbot-kit/pull/179

nayacirdan commented 6 months ago

@FredrikOseberg any chance this can be reviewed?

justinnc commented 5 months ago

hi @FredrikOseberg Please review this. I think this is very necessary. Thanks!