decord/source/__polyfill/01xxx/module_1525.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

32 lines
1.3 KiB
JavaScript

// Module ID: 1525
// Function ID: 1526
// Dependencies: [19, 21, 1526, 1528]
// Exports: NavigationProvider
// Module 1525
import context12 from "context1" /* 1526 */;
import NavigationContext from "NavigationContext" /* 1528 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsx = fn(21).jsx;
let context = noop.createContext(undefined);
export const NavigationRouteContext = context;
export const NamedRouteContextListContext = noop.createContext(undefined);
export const NavigationProvider = function NavigationProvider(route) {
route = route.route;
({ navigation, children } = route);
context = noop.useContext(context12.IsFocusedContext);
let tmp5 = null != context;
const context1 = noop.useContext(context12.FocusedRouteKeyContext);
if (tmp5) {
tmp5 = !context;
}
let tmp6 = !tmp5;
if (!tmp5) {
tmp6 = context1 === route.key;
}
const obj = { value: route, children: jsx(NavigationContext.NavigationContext.Provider, { value: navigation, children: jsx(context12.IsFocusedContext.Provider, { value: tmp6, children }) }) };
return <context.Provider value={route}>{jsx(NavigationContext.NavigationContext.Provider, { value: navigation, children: jsx(context12.IsFocusedContext.Provider, { value: tmp6, children }) })}</context.Provider>;
};