UNPKG

admesh-ui-sdk

Version:

Beautiful, modern React components for displaying AI-powered product recommendations with citation-based conversation ads, auto-triggered widgets, floating chat, conversational interfaces, persistent sidebar, and built-in tracking. Includes zero-code SDK

34 lines 1.17 kB
import { default as React } from 'react'; import { AdMeshRecommendation, AdMeshTheme } from '../types/index'; import { AdMeshSDK } from '../sdk/AdMeshSDK'; export interface AdMeshFollowupProps { recommendation: AdMeshRecommendation; theme?: AdMeshTheme; sdk: AdMeshSDK; sessionId: string; onExecuteQuery?: (query: string) => void | Promise<void>; } /** * AdMeshFollowup - Sponsored Follow-up Component * * Displays sponsored follow-up suggestions as optional fields on any recommendation. * Follow-ups use the same recommendation_id as the primary ad and are rendered separately * in a followups_container_id. This component handles all exposure and engagement tracking * internally - platforms only need to provide an onExecuteQuery hook for query execution. * * @example * ```tsx * <AdMeshFollowup * recommendation={recommendation} * sdk={sdk} * sessionId={sessionId} * theme={theme} * onExecuteQuery={(query) => { * // Platform's query execution logic * executeQuery(query); * }} * /> * ``` */ export declare const AdMeshFollowup: React.FC<AdMeshFollowupProps>; //# sourceMappingURL=AdMeshFollowup.d.ts.map