diff --git a/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.tsx b/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.tsx index b299e6f1..e3b12bdc 100644 --- a/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.tsx +++ b/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.tsx @@ -19,19 +19,9 @@ type TOrdersChatSectionProps = { userId: string; }; -const OrdersChatSection = ({ - activeChatChannel, - isChatLoading, - isError, - isInactive, - messages, - onReturn, - otherUserDetails, - refreshChat, - sendFile, - sendMessage, - userId, -}: TOrdersChatSectionProps) => { +const OrdersChatSection = ({ isInactive, onReturn, otherUserDetails, ...sendBirdData }: TOrdersChatSectionProps) => { + const { activeChatChannel, isChatLoading, isError, messages, refreshChat, sendFile, sendMessage, userId } = + sendBirdData; const { isMobile } = useDevice(); const { is_online: isOnline, last_online_time: lastOnlineTime, name } = otherUserDetails ?? {}; const isChannelClosed = isInactive || !!activeChatChannel?.isFrozen;