UNPKG

mongodb-chatbot-ui

Version:

UI React components for the MongoDB Assistant

18 lines (17 loc) 914 B
import { MessageData } from "./services/conversations"; import { Conversation } from "./useConversation"; import { Reference } from "./references"; import { Promotion } from "./promotions"; export type MessageProps = { messageData: MessageData; suggestedPrompts?: string[]; showSuggestedPrompts?: boolean; bottomContent?: React.ReactNode; onReferenceClick?: (reference: Reference) => void; onSuggestedPromptClick?: (prompt: string) => void; onPromotionClick?: (promotion: Promotion) => void; canSubmitSuggestedPrompt?: (prompt: string) => boolean; showRating: boolean; conversation: Conversation; }; export declare const Message: ({ messageData, suggestedPrompts, showSuggestedPrompts, canSubmitSuggestedPrompt, onReferenceClick, onSuggestedPromptClick, onPromotionClick, showRating, conversation, bottomContent, }: MessageProps) => import("react/jsx-runtime").JSX.Element;