stream-chat-react
Version:
React components to create chat conversations or livestream style chat
15 lines (14 loc) • 979 B
TypeScript
import React from 'react';
import type { ReactNode } from 'react';
import type { Channel, UserResponse } from 'stream-chat';
import type { TranslationContextValue } from '../../context/TranslationContext';
import type { ChatContextValue } from '../../context';
export declare const renderPreviewText: (text: string) => React.JSX.Element;
export declare const getLatestMessagePreview: (channel: Channel, t: TranslationContextValue['t'], userLanguage?: TranslationContextValue['userLanguage'], isMessageAIGenerated?: ChatContextValue['isMessageAIGenerated']) => ReactNode;
export type GroupChannelDisplayInfo = {
image?: string;
name?: string;
}[];
export declare const getGroupChannelDisplayInfo: (channel: Channel) => GroupChannelDisplayInfo | undefined;
export declare const getDisplayTitle: (channel: Channel, currentUser?: UserResponse) => string | undefined;
export declare const getDisplayImage: (channel: Channel, currentUser?: UserResponse) => string | undefined;