@botonic/react
Version:
Build Chatbots using React
32 lines (31 loc) • 836 B
TypeScript
export declare enum CardType {
CTA_URL = "cta_url",
QUICK_REPLY = "quick_reply"
}
interface BaseCard {
imageLink: string;
text: string;
}
interface UrlCard extends BaseCard {
type: CardType.CTA_URL;
action: {
buttonText: string;
buttonUrl: string;
};
}
interface QuickReplyCard extends BaseCard {
type: CardType.QUICK_REPLY;
action: {
buttons: {
text: string;
payload: string;
}[];
};
}
export type WhatsappInteractiveMediaCard = UrlCard | QuickReplyCard;
export interface WhatsappInteractiveMediaCarouselProps {
cards: WhatsappInteractiveMediaCard[];
textMessage: string;
}
export declare const WhatsappInteractiveMediaCarousel: (props: WhatsappInteractiveMediaCarouselProps) => import("react/jsx-runtime").JSX.Element;
export {};