2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 7522
|
|
|
|
|
// Function ID: 7523
|
2026-09-24 10:59:02 +00:00
|
|
|
// Name: useSelectedConversation
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [7200, 7205, 504, 7523, 2]
|
2026-09-24 10:59:02 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 7522 (useSelectedConversation)
|
|
|
|
|
import resolveSelectedConversationDefault from "resolveSelectedConversation" /* 7523 */;
|
|
|
|
|
import ChannelConversationsStore from "ChannelConversationsStore" /* 7200 */;
|
|
|
|
|
import ConversationPreviewStore from "ConversationPreviewStore" /* 7205 */;
|
2026-09-24 10:59:02 +00:00
|
|
|
|
|
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/conversations/useSelectedConversation.tsx");
|
|
|
|
|
|
|
|
|
|
export default function useSelectedConversation(arg0) {
|
|
|
|
|
_require = arg0;
|
2026-09-29 09:27:02 +00:00
|
|
|
const items = [ChannelConversationsStore, ConversationPreviewStore];
|
2026-09-24 10:59:02 +00:00
|
|
|
const items1 = [arg0];
|
|
|
|
|
return require("initialize").useStateFromStores(items, () => {
|
2026-09-29 09:27:02 +00:00
|
|
|
const selectedConversationId = ChannelConversationsStore.getSelectedConversationId(closure_0);
|
2026-09-24 10:59:02 +00:00
|
|
|
let tmp4;
|
|
|
|
|
if (null != selectedConversationId) {
|
|
|
|
|
tmp4 = resolveSelectedConversationDefault(tmp, ConversationPreviewStore, tmp2, selectedConversationId);
|
|
|
|
|
}
|
|
|
|
|
return tmp4;
|
|
|
|
|
}, items1);
|
|
|
|
|
};
|