decord/source/modules/gateway/useRequestGatewaySocket.tsx

26 lines
886 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14028
// Function ID: 14029
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 10557, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: useRequestGatewaySocket
2026-08-25 06:04:03 +00:00
// Module 14028 (useRequestGatewaySocket)
import _modDef10557 from "module_10557" /* 10557 */;
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-25 06:04:03 +00:00
const canUIRequestGatewaySocket = _modDef10557.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);
};