stream-chat-react
Version:
React components to create chat conversations or livestream style chat
15 lines (14 loc) • 808 B
TypeScript
import React from 'react';
import type { StreamMessage } from '../../context/ChannelStateContext';
import type { DefaultStreamChatGenerics } from '../../types/types';
export type FixedHeightMessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
groupedByUser?: boolean;
message?: StreamMessage<StreamChatGenerics>;
};
/**
* @deprecated - This UI component will be removed in the next major release.
*
* FixedHeightMessage - This component renders a single message.
* It uses fixed height elements to make sure it works well in VirtualizedMessageList
*/
export declare const FixedHeightMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: FixedHeightMessageProps<StreamChatGenerics>) => React.JSX.Element;