UNPKG

@xapp/chat-widget

Version:
27 lines (26 loc) 963 B
import 'rollup-plugin-inject-process-env'; import { FC } from "react"; import { ActionBarButton as ActionBarButtonConfig, ActionBarFormButton, ActionBarScheduleButton } from "@xapp/stentor-chat-widget"; export interface ActionBarButtonProps { readonly button: ActionBarButtonConfig; /** * Whether the chat widget is currently active/open */ readonly chatActive: boolean; /** * Called when chat button is clicked to open chat */ readonly onChatClick: () => void; /** * Called when chat button is clicked to minimize/close chat */ readonly onChatMinimize: () => void; /** * Called when form or schedule button is clicked. * Both button types open the form widget modal. */ readonly onFormClick: (button: ActionBarFormButton | ActionBarScheduleButton) => void; readonly isMobile: boolean; } declare const ActionBarButton: FC<ActionBarButtonProps>; export default ActionBarButton;