decord/source/modules/activities/utils/native/useHandleOAuthNavigation.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

37 lines
1.5 KiB
TypeScript

// Module ID: 17123
// Function ID: 17124
// Name: useHandleOAuthNavigation
// Dependencies: [19, 1074, 9704, 4839, 9708, 1896, 1109, 2]
// Exports: default
// Module 17123 (useHandleOAuthNavigation)
import ComponentDispatchUtils from "ComponentDispatchUtils" /* 1109 */;
import noop from "module_19" /* 19 */;
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");
export default function useHandleOAuthNavigation() {
const effect = noop.useEffect(() => {
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]);
const merged = Object.assign(arg0);
obj3.dismissOAuthModal = function dismissOAuthModal() {
closure_1_1(paths[3]).popWithKey(closure_1_5);
};
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj3, closure_1_5);
}
let ComponentDispatch = showOAuth2Modal(1109).ComponentDispatch;
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
return () => {
const ComponentDispatch = ComponentDispatchUtils.ComponentDispatch;
ComponentDispatch.unsubscribe(ComponentActions.SHOW_OAUTH2_MODAL, showOAuth2Modal);
};
}, []);
};