UNPKG

@forbespro/lead-agent-hook

Version:
24 lines (23 loc) 746 B
import { ReactNode } from 'react'; export interface LeadAgentContextType { isOpen: boolean; product: { sku: string | null; open: boolean; }; openChat: () => void; closeChat: () => void; toggleChat: () => void; openProduct: (sku: string) => void; closeProduct: () => void; } export declare const LeadAgentContext: import("react").Context<LeadAgentContextType | undefined>; export interface LeadAgentProviderProps { children: ReactNode; defaultOpen?: boolean; } export declare const LeadAgentProvider: { ({ children, defaultOpen }: LeadAgentProviderProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export declare function useLeadAgent(): LeadAgentContextType;