-
-
-
-
-
-
- Memes:
-
- {totalPostsCount}
-
-
-
-
+
+
+
+
+
+
-
- >,
- document.body
- )}
- >
+
+ {isAuthorized && (
+
+ Block user
+
+ )}
+
+
+
+
+ >,
+ document.body
)
}
-export default ProfilePostsListModalWrapper
+export default ProfilePostsListModal
diff --git a/src/components/chats/ChatList/ChatList.tsx b/src/components/chats/ChatList/ChatList.tsx
index 9164e89b4..b341a7c55 100644
--- a/src/components/chats/ChatList/ChatList.tsx
+++ b/src/components/chats/ChatList/ChatList.tsx
@@ -10,6 +10,7 @@ import { cx } from '@/utils/class-names'
import { sendMessageToParentWindow } from '@/utils/window'
import { ComponentProps, Fragment, useEffect, useId, useRef } from 'react'
import InfiniteScroll from 'react-infinite-scroll-component'
+import ProfilePostsListModal from '../ChatItem/profilePosts/ProfileProstsListModal'
import usePaginatedMessageIds from '../hooks/usePaginatedMessageIds'
import usePinnedMessage from '../hooks/usePinnedMessage'
import CenterChatNotice from './CenterChatNotice'
@@ -231,6 +232,7 @@ function ChatListContent({
newMessageNoticeClassName={newMessageNoticeClassName}
/>
)
}
diff --git a/src/stores/profile-posts-modal.ts b/src/stores/profile-posts-modal.ts
new file mode 100644
index 000000000..5e5c8dd5f
--- /dev/null
+++ b/src/stores/profile-posts-modal.ts
@@ -0,0 +1,33 @@
+import { create, createSelectors } from './utils'
+
+type State = {
+ isOpen: boolean
+ chatId?: string
+ address?: string
+ hubId?: string
+ messageId?: string
+}
+
+type Actions = {
+ closeModal: () => void
+ openModal: (config?: Omit