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

Empty Props in BotAvatar Component #192

Open
jebberwocky opened this issue Jul 3, 2024 · 0 comments
Open

Empty Props in BotAvatar Component #192

jebberwocky opened this issue Jul 3, 2024 · 0 comments

Comments

@jebberwocky
Copy link

jebberwocky commented Jul 3, 2024

Encountering an issue where the BotAvatar component within customComponents of a react-chatbot-kit configuration is receiving an empty object ({}) as props. This behavior seems unexpected.

  1. Create a BotAvatar and assign to botAvatar
    customComponents: { botAvatar: (props) => <BotAvatar {...props} />, },
  2. log the props
    const BotAvatar = (props) => { console.log(props)

props is empty object {}

Questions

  1. Intended Behavior: Is it by design that the BotAvatar component doesn't receive any props from the react-chatbot-kit configuration? If so, what is the recommended approach for customizing the bot avatar?
  2. Expected Props: If BotAvatar should receive props, what are the expected properties that can be passed? Are there any examples or documentation available?
@jebberwocky jebberwocky changed the title "props" is Empty in BotAvatar Empty Props in BotAvatar Component Jul 3, 2024
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