2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 14648
|
|
|
|
|
// Function ID: 14649
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useRequestGatewaySocket
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 11433, 7859, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useRequestGatewaySocket
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 14648 (useRequestGatewaySocket)
|
|
|
|
|
import RequestGatewaySocketAll from "RequestGatewaySocket" /* 7859 */;
|
|
|
|
|
import DiscordAppStateDefault from "DiscordAppState" /* 11433 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
|
2026-08-24 06:08:38 +00:00
|
|
|
importDefault = arg0;
|
2026-09-10 05:38:07 +00:00
|
|
|
const canUIRequestGatewaySocket = DiscordAppStateDefault.useCanUIRequestGatewaySocket();
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [arg0, canUIRequestGatewaySocket];
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect = noop.useEffect(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (canUIRequestGatewaySocket) {
|
2026-09-10 05:38:07 +00:00
|
|
|
RequestGatewaySocketAll.setRequestedBy(closure_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
return () => {
|
2026-09-10 05:38:07 +00:00
|
|
|
canUIRequestGatewaySocket(dependencyMap[2]).stopRequest(closure_1_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}, items);
|
|
|
|
|
};
|