33 lines
2.2 KiB
TypeScript
33 lines
2.2 KiB
TypeScript
/* Metro module 12068; source: modules/navbars/native/NavigationPathUtils.tsx; dependencies: [661, 3980, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as Module03980Module from '../../../by-id/module-03980.js'; /* Metro dependency 3980 */
|
|
|
|
function _fun92733(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12254:6, offset: 0x020972d3, size: 162 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const getSelectedSpecialNavigationPath2 = getSelectedSpecialNavigationPath;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {FRIENDS: 0};
|
|
object[0] = 'FRIENDS';
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/navbars/native/NavigationPathUtils.tsx');
|
|
exports.SpecialNavigationPath = object;
|
|
exports.getSelectedSpecialNavigationPath = getSelectedSpecialNavigationPath2;
|
|
exports.useSelectedSpecialNavigationPath = useSelectedSpecialNavigationPath;
|
|
function getSelectedSpecialNavigationPath({pathname}) { // fn#92734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12254:166, offset: 0x02097375, size: 42 bytes, params: 2, frame: 3
|
|
const FRIENDS = Routes.FRIENDS;
|
|
if (pathname === FRIENDS) {
|
|
return env0_3.FRIENDS;
|
|
}
|
|
}
|
|
|
|
function useSelectedSpecialNavigationPath() { // fn#92735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12254:463, offset: 0x0209739f, size: 46 bytes, params: 1, frame: 12
|
|
const getSelectedSpecialNavigationPathBinding = getSelectedSpecialNavigationPath;
|
|
const useLocation = Module03980Module.useLocation;
|
|
return getSelectedSpecialNavigationPathBinding(Reflect.apply(useLocation, Module03980Module, []));
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun92733, 12068, [661, 3980, 2]) /* metro module 12068, dependencies: [661, 3980, 2] */;
|