decord/source/modules/app_state/DiscordAppState.native.tsx

31 lines
836 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9492
// Function ID: 73885
2026-07-20 16:05:17 +00:00
// Name: canUIRequestGatewaySocket
2026-07-23 10:11:24 +00:00
// Dependencies: [6651, 566, 2]
2026-07-22 07:54:56 +00:00
2026-07-24 07:16:23 +00:00
// Module 9492 (canUIRequestGatewaySocket)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function canUIRequestGatewaySocket() {
let obj = arg0;
if (arg0 === undefined) {
2026-07-23 10:11:24 +00:00
obj = _isNativeReflectConstruct;
2026-07-20 16:05:17 +00:00
}
return "active" === obj.getState();
}
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/app_state/DiscordAppState.native.tsx");
2026-07-20 16:05:17 +00:00
export default {
canUIRequestGatewaySocket() {
return canUIRequestGatewaySocket();
},
getState() {
return state.getState();
},
useCanUIRequestGatewaySocket() {
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct];
return require(566) /* initialize */.useStateFromStores(items, () => outer1_3(outer1_2));
2026-07-20 16:05:17 +00:00
}
};