UNPKG

@xapp/chat-widget

Version:
30 lines (29 loc) 983 B
import 'rollup-plugin-inject-process-env'; import { FC } from "react"; import { ActionBarConfig, ActionBarFormButton, ActionBarScheduleButton } from "@xapp/stentor-chat-widget"; import "./ActionBar.scss"; export interface ActionBarProps { readonly config: ActionBarConfig; /** * Whether the chat widget is currently visible/open */ readonly visible: boolean; /** * Whether the chat widget is disabled (chat buttons should be hidden) */ readonly chatDisabled?: boolean; /** * Called when the chat button is clicked to open chat */ readonly onChatClick: () => void; /** * Called when the chat button is clicked to close/minimize chat */ readonly onChatMinimize: () => void; /** * Called when form or schedule button is clicked */ readonly onFormClick: (button: ActionBarFormButton | ActionBarScheduleButton) => void; } declare const ActionBar: FC<ActionBarProps>; export default ActionBar;