// Module ID: 17097 // Function ID: 17098 // Name: useHandleOAuthNavigation // Dependencies: [19, 1074, 9667, 4810, 9671, 1896, 1109, 2] // Exports: default // Module 17097 (useHandleOAuthNavigation) import ComponentDispatchUtils from "ComponentDispatchUtils" /* 1109 */; import noop from "module_19" /* 19 */; require = fn; const ComponentActions = fn(1074).ComponentActions; let closure_5 = fn(9667).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); }; }, []); };