2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 12291
|
|
|
|
|
// Function ID: 12292
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: NavigationPathUtils
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [1074, 4666, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: getSelectedSpecialNavigationPath, useSelectedSpecialNavigationPath
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 12291 (NavigationPathUtils)
|
2026-09-26 17:57:22 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import MemoryRouter from "MemoryRouter" /* 4666 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const Routes = Constants.Routes;
|
|
|
|
|
const SpecialNavigationPath = { FRIENDS: 0, [0]: "FRIENDS" };
|
|
|
|
|
const result = size.fileFinishedImporting("modules/navbars/native/NavigationPathUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export { SpecialNavigationPath };
|
2026-09-26 17:57:22 +00:00
|
|
|
export const getSelectedSpecialNavigationPath = function getSelectedSpecialNavigationPath(pathname) {
|
|
|
|
|
if (pathname.pathname === Routes.FRIENDS) {
|
|
|
|
|
return obj.FRIENDS;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|
|
|
|
|
export const useSelectedSpecialNavigationPath = function useSelectedSpecialNavigationPath() {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = MemoryRouter;
|
2026-09-18 19:45:33 +00:00
|
|
|
let FRIENDS;
|
|
|
|
|
if (obj.useLocation().pathname === Routes.FRIENDS) {
|
|
|
|
|
FRIENDS = obj.FRIENDS;
|
|
|
|
|
}
|
|
|
|
|
return FRIENDS;
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|