25 lines
886 B
TypeScript
25 lines
886 B
TypeScript
// Module ID: 14028
|
|
// Function ID: 14029
|
|
// Name: useRequestGatewaySocket
|
|
// Dependencies: [19, 10557, 675, 2]
|
|
// Exports: useRequestGatewaySocket
|
|
|
|
// Module 14028 (useRequestGatewaySocket)
|
|
import _modDef10557 from "module_10557" /* 10557 */;
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
const result = require("set").fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
|
|
|
|
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
|
|
importDefault = arg0;
|
|
const canUIRequestGatewaySocket = _modDef10557.useCanUIRequestGatewaySocket();
|
|
const items = [arg0, canUIRequestGatewaySocket];
|
|
const effect = React.useEffect(() => {
|
|
if (canUIRequestGatewaySocket) {
|
|
canUIRequestGatewaySocket(closure_1_2[2]).setRequestedBy(closure_0);
|
|
return () => {
|
|
closure_1_1(closure_1_2[2]).stopRequest(closure_0);
|
|
};
|
|
}
|
|
}, items);
|
|
};
|