Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text above the bot and user message #185

Open
cmendoza-dev opened this issue Feb 20, 2024 · 0 comments
Open

Add text above the bot and user message #185

cmendoza-dev opened this issue Feb 20, 2024 · 0 comments

Comments

@cmendoza-dev
Copy link

In the documentation I can't find how to customize the messages from the bot or the user.

` customComponents: {
header: (props) => <ChatbotHeader {...props} />,
botAvatar: (props) => <BotAvatar {...props} />,
userAvatar: (props) => <UserAvatar {...props} />,

//customize the messages from the bot
botMessages: CustomBotMessage,

},
**CustomBotMessage.js**import React from 'react';

const CustomBotMessage = ({ message }) => {
return (



Tec
{message.timestamp && (
{new Date(message.timestamp).toLocaleString()}
)}

{message.message}


);
};

export default CustomBotMessage;

Captura de pantalla 2024-02-19 223306

@FredrikOseberg Please help me!

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant