decord/source/modules/chat/native/ChatViewPopups.tsx

58 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 11677
// Function ID: 90592
2026-07-20 16:05:17 +00:00
// Name: ChatViewPopups
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 11678, 11682, 11690, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 11677 (ChatViewPopups)
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
const require = arg1;
2026-07-20 16:05:17 +00:00
class ChatViewPopups {
constructor(arg0) {
guildId = global.guildId;
2026-07-23 10:11:24 +00:00
c1 = channelId.useRef(false);
tmp = require("useIsHubRealNamePromptShowing")(guildId);
closure_2 = tmp;
obj = require("useShowWelcomeModal");
2026-07-20 16:05:17 +00:00
showWelcomeModal = obj.useShowWelcomeModal(guildId, global.channelId);
2026-07-23 10:11:24 +00:00
channelId = showWelcomeModal;
2026-07-20 16:05:17 +00:00
items = [, , ];
items[0] = guildId;
items[1] = showWelcomeModal;
items[2] = tmp;
2026-07-23 10:11:24 +00:00
effect = channelId.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (!ref.current) {
if (tmp) {
let obj = {
guildId,
onHide() {
2026-07-23 10:11:24 +00:00
outer1_1.current = false;
2026-07-20 16:05:17 +00:00
return false;
}
};
ref(tmp[3]).open(obj);
ref.current = true;
const obj3 = ref(tmp[3]);
} else if (showWelcomeModal) {
obj = guildId(tmp[2]);
obj = {
guildId,
onHide() {
2026-07-23 10:11:24 +00:00
outer1_1.current = false;
2026-07-20 16:05:17 +00:00
return false;
}
};
const result = obj.openWelcomeActionSheet(obj);
ref.current = true;
}
}
}, items);
return null;
}
}
const memoResult = importAllResult.memo(ChatViewPopups);
2026-07-23 10:11:24 +00:00
let result = require("useShowWelcomeModal").fileFinishedImporting("modules/chat/native/ChatViewPopups.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;
export { ChatViewPopups };