@forbespro/lead-agent
Version:
Lead Chat Agent React Component
29 lines (28 loc) • 840 B
TypeScript
import React from 'react';
export interface LeadAgentProps {
initialMessages?: any[];
initialChatId?: string;
onStageComplete?: (stage: string, data: any) => void;
onGoalComplete?: (goal: string, data: any) => void;
isOpen?: boolean;
onClose?: () => void;
onToggle?: () => void;
onOpenChange?: (open: boolean) => void;
currentProduct?: {
name?: string;
sku: string;
model_number?: string;
product_type?: string;
manufacturer?: string;
product_image?: string;
product_image_alt?: string;
slug?: string;
id?: string;
objectID?: string;
category?: string;
};
children?: React.ReactNode;
onSubmit?: (values: any) => void;
}
export declare const LeadAgent: React.FC<LeadAgentProps>;
export default LeadAgent;