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

60 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 12067
// Function ID: 12068
2026-07-20 16:05:17 +00:00
// Name: ChatViewPopups
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 12068, 12072, 12080, 2]
2026-07-20 16:05:17 +00:00
2026-08-13 07:00:46 +00:00
// Module 12067 (ChatViewPopups)
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
class ChatViewPopups {
constructor(arg0) {
guildId = global.guildId;
2026-07-29 08:29:29 +00:00
useRef = undefined;
c2 = undefined;
channelId = undefined;
useRef = channelId.useRef(false);
2026-07-23 10:11:24 +00:00
tmp = require("useIsHubRealNamePromptShowing")(guildId);
2026-07-29 08:29:29 +00:00
c2 = tmp;
2026-07-23 10:11:24 +00:00
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) {
2026-07-29 08:29:29 +00:00
if (_undefined) {
let obj = { guildId: null, onHide: null };
obj[0] = guildId;
obj[1] = function onHide() {
closure_1.current = false;
return false;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
ref(_undefined[3]).open(obj);
tmp.current = true;
const obj3 = ref(_undefined[3]);
2026-07-20 16:05:17 +00:00
} else if (showWelcomeModal) {
2026-07-29 08:29:29 +00:00
obj = guildId(_undefined[2]);
obj = { guildId: null, onHide: null };
obj[0] = guildId;
obj[1] = function onHide() {
closure_1.current = false;
return false;
2026-07-20 16:05:17 +00:00
};
const result = obj.openWelcomeActionSheet(obj);
2026-07-29 08:29:29 +00:00
tmp.current = true;
2026-07-20 16:05:17 +00:00
}
}
}, items);
return null;
}
}
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
2026-07-20 16:05:17 +00:00
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 };