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

38 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 17123
// Function ID: 17124
2026-07-20 16:05:17 +00:00
// Name: useHandleOAuthNavigation
// Dependencies: [19, 1074, 9704, 4839, 9708, 1896, 1109, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 17123 (useHandleOAuthNavigation)
import ComponentDispatchUtils from "ComponentDispatchUtils" /* 1109 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const ComponentActions = fn(1074).ComponentActions;
let closure_5 = fn(9704).OAUTH2_AUTHORIZE_MODAL_KEY;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
2026-07-20 16:05:17 +00:00
export default function useHandleOAuthNavigation() {
const effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
function showOAuth2Modal(arg0) {
closure_1_1(paths[3]).popWithKey(closure_1_5);
const obj = closure_1_1(paths[3]);
const obj3 = {};
const obj2 = closure_1_1(paths[3]);
2026-07-20 16:05:17 +00:00
const merged = Object.assign(arg0);
obj3.dismissOAuthModal = function dismissOAuthModal() {
closure_1_1(paths[3]).popWithKey(closure_1_5);
2026-07-20 16:05:17 +00:00
};
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj3, closure_1_5);
2026-07-20 16:05:17 +00:00
}
let ComponentDispatch = showOAuth2Modal(1109).ComponentDispatch;
2026-07-29 08:29:29 +00:00
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
2026-07-20 16:05:17 +00:00
return () => {
const ComponentDispatch = ComponentDispatchUtils.ComponentDispatch;
ComponentDispatch.unsubscribe(ComponentActions.SHOW_OAUTH2_MODAL, showOAuth2Modal);
2026-07-20 16:05:17 +00:00
};
}, []);
};