@ruchiralk/chat-bot-com
Version:
A customizable chatbot UI component for React
19 lines (15 loc) • 405 B
TypeScript
import React from "react";
declare module "@ruchiralk/chat-bot-com" {
interface CustomResponses {
greeting?: string;
responses?: {
[keyword: string]: string | ((input: string) => string);
};
defaultResponse?: string;
}
interface ChatbotProps {
customResponses?: CustomResponses;
}
const Chatbot: React.FC<ChatbotProps>;
export default Chatbot;
}