decord/source/modules/activities/utils/native/useHandleOAuthNavigation.tsx

36 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16362
// Function ID: 16363
2026-07-20 16:05:17 +00:00
// Name: useHandleOAuthNavigation
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 676, 10706, 4611, 10710, 2009, 1231, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 16362 (useHandleOAuthNavigation)
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { ComponentActions } from "ME" /* 676 */;
2026-08-25 06:04:03 +00:00
import { OAUTH2_AUTHORIZE_MODAL_KEY as closure_5 } from "OAUTH2_AUTHORIZE_MODAL_KEY" /* 10706 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
2026-07-20 16:05:17 +00:00
export default function useHandleOAuthNavigation() {
const effect = React.useEffect(() => {
function showOAuth2Modal(arg0) {
2026-07-29 08:29:29 +00:00
let obj = callback(paths[3]);
obj.popWithKey(closure_5);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const obj2 = callback(paths[3]);
2026-07-20 16:05:17 +00:00
const merged = Object.assign(arg0);
2026-07-29 08:29:29 +00:00
obj.dismissOAuthModal = function dismissOAuthModal() {
callback(table[3]).popWithKey(closure_5);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj, closure_5);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let ComponentDispatch = showOAuth2Modal(table[6]).ComponentDispatch;
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
2026-07-20 16:05:17 +00:00
return () => {
2026-08-24 06:08:38 +00:00
const ComponentDispatch = showOAuth2Modal(closure_1_2[6]).ComponentDispatch;
ComponentDispatch.unsubscribe(closure_1_4.SHOW_OAUTH2_MODAL, showOAuth2Modal);
2026-07-20 16:05:17 +00:00
};
}, []);
};