@@ -20,7 +20,7 @@ import { useStableCallback } from '../../hooks';
2020import { primitives } from '../../theme' ;
2121import { ChannelAvatar } from '../ui/Avatar/ChannelAvatar' ;
2222
23- export type ChannelPreviewMessengerPropsWithContext = Pick < ChannelPreviewProps , 'channel' > &
23+ export type ChannelPreviewViewPropsWithContext = Pick < ChannelPreviewProps , 'channel' > &
2424 Pick <
2525 ChannelsContextValue ,
2626 | 'maxUnreadCount'
@@ -50,7 +50,7 @@ export type ChannelPreviewMessengerPropsWithContext = Pick<ChannelPreviewProps,
5050 lastMessage ?: LastMessageType ;
5151 } ;
5252
53- const ChannelPreviewMessengerWithContext = ( props : ChannelPreviewMessengerPropsWithContext ) => {
53+ const ChannelPreviewViewWithContext = ( props : ChannelPreviewViewPropsWithContext ) => {
5454 const {
5555 channel,
5656 formatLatestMessageDate,
@@ -146,20 +146,18 @@ const ChannelPreviewMessengerWithContext = (props: ChannelPreviewMessengerPropsW
146146 ) ;
147147} ;
148148
149- export type ChannelPreviewMessengerProps = Partial <
150- Omit < ChannelPreviewMessengerPropsWithContext , 'channel' >
151- > &
152- Pick < ChannelPreviewMessengerPropsWithContext , 'channel' > ;
149+ export type ChannelPreviewViewProps = Partial < Omit < ChannelPreviewViewPropsWithContext , 'channel' > > &
150+ Pick < ChannelPreviewViewPropsWithContext , 'channel' > ;
153151
154- const MemoizedChannelPreviewMessengerWithContext = React . memo (
155- ChannelPreviewMessengerWithContext ,
156- ) as typeof ChannelPreviewMessengerWithContext ;
152+ const MemoizedChannelPreviewViewWithContext = React . memo (
153+ ChannelPreviewViewWithContext ,
154+ ) as typeof ChannelPreviewViewWithContext ;
157155
158156/**
159157 * This UI component displays an individual preview item for each channel in a list. It also receives all props
160158 * from the ChannelPreview component.
161159 */
162- export const ChannelPreviewMessenger = ( props : ChannelPreviewMessengerProps ) => {
160+ export const ChannelPreviewView = ( props : ChannelPreviewViewProps ) => {
163161 const {
164162 forceUpdate,
165163 maxUnreadCount,
@@ -172,7 +170,7 @@ export const ChannelPreviewMessenger = (props: ChannelPreviewMessengerProps) =>
172170 mutedStatusPosition,
173171 } = useChannelsContext ( ) ;
174172 return (
175- < MemoizedChannelPreviewMessengerWithContext
173+ < MemoizedChannelPreviewViewWithContext
176174 { ...{
177175 forceUpdate,
178176 maxUnreadCount,
@@ -189,7 +187,7 @@ export const ChannelPreviewMessenger = (props: ChannelPreviewMessengerProps) =>
189187 ) ;
190188} ;
191189
192- ChannelPreviewMessenger . displayName = 'ChannelPreviewMessenger {channelPreview}' ;
190+ ChannelPreviewView . displayName = 'ChannelPreviewView {channelPreview}' ;
193191
194192const useStyles = ( ) => {
195193 const {
0 commit comments