UNPKG

converse-ai-support-library

Version:

A React component library for floating contact buttons (email, chat, call)

35 lines (34 loc) 904 B
import { RuntimeAgentResponse } from './agent'; import { MessageRole } from './enums'; import { GetInfoFormData } from './GetInfoForm'; export interface Message { id: string; role: MessageRole; content: string; timestamp: string; } export interface ChatbotProps { isOpen?: boolean; enterpriseId?: string; showClose?: boolean; onClose?: () => void; baseUrl: string; className?: string; onMinimize?: () => void; onExpand?: () => void; showMinimize?: boolean; showExpand?: boolean; onHeaderClick?: () => void; minimized?: boolean; mediaId?: string; leadData?: GetInfoFormData; agentData?: RuntimeAgentResponse; } export interface ChatInputProps { value: string; onChange: (value: string) => void; onSend: () => void; onKeyPress: (e: React.KeyboardEvent) => void; disabled?: boolean; placeholder?: string; }