decord/source/modules/activities/utils/native/useHandleOAuthNavigation.tsx
2026-07-20 17:37:48 +00:00

33 lines
1.3 KiB
TypeScript

// Module ID: 15561
// Function ID: 118760
// Name: useHandleOAuthNavigation
// Dependencies: []
// Exports: default
// Module 15561 (useHandleOAuthNavigation)
let closure_3 = importAll(dependencyMap[0]);
const ComponentActions = arg1(dependencyMap[1]).ComponentActions;
let closure_5 = arg1(dependencyMap[2]).OAUTH2_AUTHORIZE_MODAL_KEY;
const result = arg1(dependencyMap[7]).fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
export default function useHandleOAuthNavigation() {
const effect = React.useEffect(() => {
function showOAuth2Modal(arg0) {
let obj = callback(paths[3]);
obj.popWithKey(closure_5);
obj = {};
const obj2 = callback(paths[3]);
const merged = Object.assign(arg0);
obj["dismissOAuthModal"] = function dismissOAuthModal() {
callback(closure_2[3]).popWithKey(closure_5);
};
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj, closure_5);
}
const ComponentDispatch = showOAuth2Modal(closure_2[6]).ComponentDispatch;
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
return () => {
const ComponentDispatch = showOAuth2Modal(closure_2[6]).ComponentDispatch;
ComponentDispatch.unsubscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
};
}, []);
};