UNPKG

supporttor

Version:

A generic React chat widget component that supports any app with a knowledge base

20 lines (19 loc) 551 B
import React from 'react'; import { Message, Language } from './types'; import './ChatInterface.css'; interface ChatInterfaceProps { isOpen: boolean; onClose: () => void; messages: Message[]; onSendMessage: (message: string) => void; onRetryMessage: (messageId: string) => void; onNewChat: () => void; isLoading: boolean; appName: string; faqUrl: string; userEmail?: string | null; onSignIn: () => void; language: Language; } export declare const ChatInterface: React.FC<ChatInterfaceProps>; export {};