MCPcopy Create free account
hub / github.com/CommE2E/comm / useInfosForPendingThread

Function useInfosForPendingThread

web/utils/thread-utils.js:25–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23};
24
25function useInfosForPendingThread(): InfosForPendingThread {
26 const isChatCreation = useSelector(
27 state => state.navInfo.chatMode === 'create',
28 );
29 const selectedUserInfos = useSelector(
30 state => state.navInfo.selectedUserList ?? [],
31 );
32 return {
33 isChatCreation,
34 selectedUserInfos,
35 };
36}
37
38function useThreadInfoForPossiblyPendingThread(
39 activeChatThreadID: ?string,

Calls 1

useSelectorFunction · 0.90

Tested by

no test coverage detected