You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Custom UI component to display the container for the queried channels, defaults to and accepts same props as: [ChannelListMessenger](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ChannelList/ChannelListMessenger.tsx) */
@@ -33,9 +33,9 @@ export type ChannelPreviewUIComponentProps<
33
33
/** The last message received in a channel */
34
34
lastMessage?: StreamMessage<StreamChatGenerics>;
35
35
/** @deprecated Use latestMessagePreview prop instead. */
36
-
latestMessage?: string|JSX.Element;
36
+
latestMessage?: ReactNode;
37
37
/** Latest message preview to display, will be a string or JSX element supporting markdown. */
38
-
latestMessagePreview?: string|JSX.Element;
38
+
latestMessagePreview?: ReactNode;
39
39
/** Status describing whether own message has been delivered or read by another. If the last message is not an own message, then the status is undefined. */
40
40
messageDeliveryStatus?: MessageDeliveryStatus;
41
41
/** Number of unread Messages */
@@ -62,7 +62,7 @@ export type ChannelPreviewProps<
0 commit comments