UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

15 lines (14 loc) 765 B
import type { Channel } from 'stream-chat'; import type { DefaultStreamChatGenerics } from '../../../types/types'; export type ChannelPreviewInfoParams<StreamChatGenerics extends DefaultStreamChatGenerics> = { channel: Channel<StreamChatGenerics>; /** Manually set the image to render, defaults to the Channel image */ overrideImage?: string; /** Set title manually */ overrideTitle?: string; }; export declare const useChannelPreviewInfo: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelPreviewInfoParams<StreamChatGenerics>) => { displayImage: string | undefined; displayTitle: string | undefined; groupChannelDisplayInfo: import("../utils").GroupChannelDisplayInfo | undefined; };