59 lines
1.7 KiB
TypeScript
59 lines
1.7 KiB
TypeScript
// Module ID: 11742
|
|
// Function ID: 11743
|
|
// Name: ChatViewPopups
|
|
// Dependencies: [19, 11743, 11747, 11755, 2]
|
|
|
|
// Module 11742 (ChatViewPopups)
|
|
import importAllResult from "noop";
|
|
|
|
const require = arg1;
|
|
class ChatViewPopups {
|
|
constructor(arg0) {
|
|
guildId = global.guildId;
|
|
useRef = undefined;
|
|
c2 = undefined;
|
|
channelId = undefined;
|
|
useRef = channelId.useRef(false);
|
|
tmp = require("useIsHubRealNamePromptShowing")(guildId);
|
|
c2 = tmp;
|
|
obj = require("useShowWelcomeModal");
|
|
showWelcomeModal = obj.useShowWelcomeModal(guildId, global.channelId);
|
|
channelId = showWelcomeModal;
|
|
items = [, , ];
|
|
items[0] = guildId;
|
|
items[1] = showWelcomeModal;
|
|
items[2] = tmp;
|
|
effect = channelId.useEffect(() => {
|
|
if (!ref.current) {
|
|
if (_undefined) {
|
|
let obj = { guildId: null, onHide: null };
|
|
obj[0] = guildId;
|
|
obj[1] = function onHide() {
|
|
closure_1.current = false;
|
|
return false;
|
|
};
|
|
ref(_undefined[3]).open(obj);
|
|
tmp.current = true;
|
|
const obj3 = ref(_undefined[3]);
|
|
} else if (showWelcomeModal) {
|
|
obj = guildId(_undefined[2]);
|
|
obj = { guildId: null, onHide: null };
|
|
obj[0] = guildId;
|
|
obj[1] = function onHide() {
|
|
closure_1.current = false;
|
|
return false;
|
|
};
|
|
const result = obj.openWelcomeActionSheet(obj);
|
|
tmp.current = true;
|
|
}
|
|
}
|
|
}, items);
|
|
return null;
|
|
}
|
|
}
|
|
let c3 = importAllResult;
|
|
const memoResult = importAllResult.memo(ChatViewPopups);
|
|
let result = require("useShowWelcomeModal").fileFinishedImporting("modules/chat/native/ChatViewPopups.tsx");
|
|
|
|
export default memoResult;
|
|
export { ChatViewPopups };
|