decord/source/modules/window/native/AppEntryKeyContext.tsx

33 lines
978 B
TypeScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1453
2026-07-24 07:16:23 +00:00
// Function ID: 16958
2026-07-20 16:05:17 +00:00
// Name: context
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 3, 2]
2026-07-20 16:05:17 +00:00
// Exports: useAppEntryKey
// Module 1453 (context)
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import importDefaultResult from "timestamp";
2026-07-20 16:05:17 +00:00
importDefaultResult = new importDefaultResult("AppEntryKeyContext");
2026-07-23 10:11:24 +00:00
let context = importAllResult.createContext(undefined);
let c3 = false;
const result = require("set").fileFinishedImporting("modules/window/native/AppEntryKeyContext.tsx");
2026-07-20 16:05:17 +00:00
export const DEFAULT_APP_ENTRY_KEY = "main";
export const AppEntryKeyContext = context;
export const useAppEntryKey = function useAppEntryKey() {
2026-07-23 10:11:24 +00:00
context = context.useContext(context);
2026-07-20 16:05:17 +00:00
const items = [context];
2026-07-23 10:11:24 +00:00
const effect = context.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (!tmp) {
2026-07-23 10:11:24 +00:00
const outer1_3 = true;
outer1_1.warn("AppEntryKey context was not provided; falling back to default entry key \"main\".");
2026-07-20 16:05:17 +00:00
}
}, items);
let str = "main";
if (null != context) {
str = context;
}
return str;
};