Currently IChatBodyPlaceholderFactory and IWelcomeMessage provide similar behavior (a placeholder when opening an empty chat). It may be confusing to keep both.
Perhaps, in a follow up PR, we could allow a content?: string in the props. If provided, this content could be rendered as markdown, instead of calling create (which would be optional too in this case).
That way, the ChatBodyPlaceholder could be use to both create a custom component or display a markdown, and we could remove the IWelcomeMessage.
Originally posted by @brichet in #433 (comment)
Currently
IChatBodyPlaceholderFactoryandIWelcomeMessageprovide similar behavior (a placeholder when opening an empty chat). It may be confusing to keep both.Perhaps, in a follow up PR, we could allow a
content?: stringin the props. If provided, this content could be rendered as markdown, instead of callingcreate(which would be optional too in this case).That way, the
ChatBodyPlaceholdercould be use to both create a custom component or display a markdown, and we could remove theIWelcomeMessage.Originally posted by @brichet in #433 (comment)