decord/source/modules/gateway/useRequestGatewaySocket.tsx

26 lines
886 B
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 14437
// Function ID: 14438
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 11157, 672, 2]
2026-07-20 16:05:17 +00:00
// Exports: useRequestGatewaySocket
2026-09-02 09:53:35 +00:00
// Module 14437 (useRequestGatewaySocket)
import _modDef11157 from "module_11157" /* 11157 */;
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-09-02 09:53:35 +00:00
const canUIRequestGatewaySocket = _modDef11157.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);
};