UNPKG

@xapp/chat-widget

Version:
33 lines (32 loc) 911 B
import 'rollup-plugin-inject-process-env'; import { FC } from "react"; import { Cta } from "@xapp/stentor-chat-widget"; import "./ActionBarCta.scss"; export interface ActionBarCtaProps { /** * CTA configuration */ readonly config: Cta; /** * Whether we're on mobile (affects styling) */ readonly isMobile: boolean; /** * Called when the CTA is clicked (opens chat) */ readonly onClick: () => void; /** * Called when the CTA is dismissed */ readonly onDismiss: () => void; /** * Whether the user has already interacted (clicked chat, dismissed CTA, etc.) */ readonly hasUserInteracted: boolean; } /** * CTA banner for ActionBar - a full-width rectangular banner that appears * above the action bar to prompt users to engage with chat. */ declare const ActionBarCta: FC<ActionBarCtaProps>; export default ActionBarCta;