2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 1482
|
|
|
|
|
// Function ID: 1483
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: AppEntryKeyContext
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [19, 3, 2]
|
|
|
|
|
// Exports: useAppEntryKey
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 1482 (AppEntryKeyContext)
|
2026-09-18 19:45:33 +00:00
|
|
|
import LoggerDefault from "Logger" /* 3 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
let closure_1 = new LoggerDefault("AppEntryKeyContext");
|
2026-09-18 19:45:33 +00:00
|
|
|
const main = "main";
|
|
|
|
|
let context = noop.createContext(undefined);
|
2026-09-26 17:57:22 +00:00
|
|
|
let c4 = false;
|
2026-09-18 19:45:33 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/window/native/AppEntryKeyContext.tsx");
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_APP_ENTRY_KEY = "main";
|
|
|
|
|
export const AppEntryKeyContext = context;
|
2026-09-26 17:57:22 +00:00
|
|
|
export const useAppEntryKey = function useAppEntryKey() {
|
|
|
|
|
context = context.useContext(context);
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [context];
|
2026-09-26 17:57:22 +00:00
|
|
|
const effect = context.useEffect(() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!tmp) {
|
2026-09-26 17:57:22 +00:00
|
|
|
c4 = true;
|
2026-09-18 19:45:33 +00:00
|
|
|
logger.warn("AppEntryKey context was not provided; falling back to default entry key \"main\".");
|
|
|
|
|
}
|
|
|
|
|
}, items);
|
|
|
|
|
if (context == null) {
|
|
|
|
|
context = main;
|
|
|
|
|
}
|
|
|
|
|
return context;
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|