Skip to content

Merge IChatBodyPlaceholderFactory and IWelcomeMessage #436

Description

@dlqqq

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions