UNPKG

@acrsolutions/chat-components

Version:

Un set di componenti per la creazione di un'applicazione di messaggistica

37 lines (36 loc) 1.47 kB
/** * Questo componente copre la maggior parte delle possibilità di messaggio: * template, media, testo semplice, ecc. */ import { MessageTemplatePreview } from './MessageTemplatePreview'; import { type ComponentProps } from 'react'; export declare function SmartWMessage({ isReceived, templateName, searchString, onSearchRefs, focusedRefIndex, focusedKey, templateVariables, getTemplateData, messageText, imgUrl, caption, videoUrl, audioUrl, documentUrl, fileName, buttonPayload, sentDate, readDate, deliveredDate, reaction, }: { isReceived: boolean; templateName?: string | null; searchString?: string; onSearchRefs?: ComponentProps<typeof MessageTemplatePreview>['onSearchRefs']; focusedRefIndex?: number; focusedKey?: string | null; templateVariables?: { key: string; value: string; }[] | null; getTemplateData?: (templateName: string) => { bodyText: string; headerText: string | null; footerText: string | null; templateImgUrl: string | undefined; }; messageText?: string | null; imgUrl?: string | null; caption?: string | null; videoUrl?: string | null; audioUrl?: string | null; documentUrl?: string | null; fileName?: string | null; buttonPayload?: string | null; sentDate?: string | null; readDate?: string | null; deliveredDate?: string | null; reaction?: string | null; }): import("react/jsx-runtime").JSX.Element;