UNPKG

@promotedai/react-introspection

Version:

Promoted Introspection integration for React web apps

20 lines (19 loc) 788 B
import React from 'react'; import { IntrospectionData } from './types'; import { ByLogUserIdResult } from './PromotedIntrospection'; export interface IntrospectionIds { label: string; value?: string; } export interface PopupArgs { contentId: string; direction?: 'left' | 'right'; triggerContainerRef: React.RefObject<HTMLDivElement>; introspectionData?: IntrospectionData; fullIntrospectionPayload?: ByLogUserIdResult[]; introspectionIds: IntrospectionIds[]; logUserId: string; error?: string | void; handleClose: () => any; } export declare const Popup: ({ error, triggerContainerRef, introspectionData, fullIntrospectionPayload, introspectionIds, logUserId, contentId, handleClose, direction, }: PopupArgs) => JSX.Element;