FredrikOseberg / react-chatbot-kit

MIT License
297 stars 139 forks source link

Payload missing on chatbot custom component #176

Open cavaco-julianlosada opened 6 months ago

cavaco-julianlosada commented 6 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 5 months ago

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

nayacirdan commented 1 month ago

@FredrikOseberg any chance this can be reviewed?

justinnc commented 4 weeks ago

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