decord/source/modules/gateway/useRequestGatewaySocket.tsx

26 lines
886 B
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 14128
// Function ID: 14129
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
2026-08-27 16:17:25 +00:00
// Dependencies: [19, 10857, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: useRequestGatewaySocket
2026-08-27 16:17:25 +00:00
// Module 14128 (useRequestGatewaySocket)
import _modDef10857 from "module_10857" /* 10857 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const result = require("set").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-08-27 16:17:25 +00:00
const canUIRequestGatewaySocket = _modDef10857.useCanUIRequestGatewaySocket();
2026-07-20 16:05:17 +00:00
const items = [arg0, canUIRequestGatewaySocket];
const effect = React.useEffect(() => {
if (canUIRequestGatewaySocket) {
2026-08-24 06:08:38 +00:00
canUIRequestGatewaySocket(closure_1_2[2]).setRequestedBy(closure_0);
2026-07-20 16:05:17 +00:00
return () => {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[2]).stopRequest(closure_0);
2026-07-20 16:05:17 +00:00
};
}
}, items);
};