decord/source/modules/gateway/useRequestGatewaySocket.tsx
2026-07-20 17:37:48 +00:00

24 lines
890 B
TypeScript

// Module ID: 13352
// Function ID: 101576
// Name: useRequestGatewaySocket
// Dependencies: []
// Exports: useRequestGatewaySocket
// Module 13352 (useRequestGatewaySocket)
let closure_3 = importAll(dependencyMap[0]);
const result = arg1(dependencyMap[3]).fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
export const useRequestGatewaySocket = function useRequestGatewaySocket(arg0) {
const importDefault = arg0;
const canUIRequestGatewaySocket = importDefault(dependencyMap[1]).useCanUIRequestGatewaySocket();
const importAll = canUIRequestGatewaySocket;
const items = [arg0, canUIRequestGatewaySocket];
const effect = React.useEffect(() => {
if (canUIRequestGatewaySocket) {
canUIRequestGatewaySocket(closure_2[2]).setRequestedBy(arg0);
return () => {
callback(closure_2[2]).stopRequest(closure_0);
};
}
}, items);
};