2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 1591
|
|
|
|
|
// Function ID: 1592
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NavigationContent
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [19, 21]
|
2026-08-06 08:05:19 +00:00
|
|
|
// Exports: useComponent
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 1591 (NavigationContent)
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_0 from "noop" /* 19 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function NavigationContent(render) {
|
|
|
|
|
return render.render(render.children);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
export const useComponent = function useComponent(current) {
|
2026-07-23 10:11:24 +00:00
|
|
|
ref = ref.useRef(current);
|
2026-07-20 16:05:17 +00:00
|
|
|
ref.current = current;
|
2026-07-23 10:11:24 +00:00
|
|
|
const effect = ref.useEffect(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
ref.current = null;
|
|
|
|
|
});
|
2026-07-23 10:11:24 +00:00
|
|
|
return ref.useRef((arg0) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
const current = ref.current;
|
|
|
|
|
if (null === current) {
|
|
|
|
|
const _Error = Error;
|
2026-08-24 06:08:38 +00:00
|
|
|
error = new Error("The returned component must be rendered in the same render phase as the hook.");
|
2026-07-20 16:05:17 +00:00
|
|
|
throw error;
|
|
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = { render: null, children: null };
|
|
|
|
|
obj[0] = current;
|
|
|
|
|
obj[1] = tmp;
|
2026-08-24 06:08:38 +00:00
|
|
|
return closure_1_1(closure_1_2, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}).current;
|
|
|
|
|
};
|