()
| 23 | }; |
| 24 | |
| 25 | function 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 | |
| 38 | function useThreadInfoForPossiblyPendingThread( |
| 39 | activeChatThreadID: ?string, |
no test coverage detected