@botonic/react
Version:
Build Chatbots using React
46 lines (41 loc) • 1.08 kB
text/typescript
import React from 'react'
import {
AiAgentDebugEvent,
BotActionDebugEvent,
ConditionalChannelDebugEvent,
ConditionalCountryDebugEvent,
ConditionalCustomDebugEvent,
ConditionalQueueStatusDebugEvent,
FallbackDebugEvent,
HandoffSuccessDebugEvent,
KeywordDebugEvent,
KnowledgeBaseDebugEvent,
RedirectFlowDebugEvent,
SmartIntentDebugEvent,
WebviewActionTriggeredDebugEvent,
} from './events'
export interface IconProps {
color?: string
}
// Union type of all debug event types
export type DebugEvent =
| KeywordDebugEvent
| AiAgentDebugEvent
| KnowledgeBaseDebugEvent
| FallbackDebugEvent
| SmartIntentDebugEvent
| HandoffSuccessDebugEvent
| BotActionDebugEvent
| ConditionalChannelDebugEvent
| ConditionalCountryDebugEvent
| ConditionalCustomDebugEvent
| ConditionalQueueStatusDebugEvent
| RedirectFlowDebugEvent
| WebviewActionTriggeredDebugEvent
export interface DebugEventConfig {
action: string
title: React.ReactNode
component: React.ComponentType<any> | null
icon?: React.ReactNode
collapsible?: boolean
}