decord/source/modules/icymi/native/ICYMIContext.tsx

24 lines
967 B
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15250
// Function ID: 116071
2026-07-20 16:05:17 +00:00
// Name: useICYMIContextConstructor
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 33, 1450, 689, 2]
2026-07-20 16:05:17 +00:00
// Exports: ICYMIContextProvider
2026-07-27 11:26:19 +00:00
// Module 15250 (useICYMIContextConstructor)
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-20 16:05:17 +00:00
function useICYMIContextConstructor() {
2026-07-23 10:11:24 +00:00
const bound = Math.min(importDefault(1450)().width, 480);
const PX_16 = importDefault(689).space.PX_16;
2026-07-20 16:05:17 +00:00
return { width: bound, margin: PX_16, inset: PX_16 + 38 };
}
2026-07-23 10:11:24 +00:00
const context = require("result").createContext({ width: 0, margin: 0, inset: 0 });
const result = require("useWindowDimensions").fileFinishedImporting("modules/icymi/native/ICYMIContext.tsx");
2026-07-20 16:05:17 +00:00
export const ICYMIContext = context;
export { useICYMIContextConstructor };
export const ICYMIContextProvider = function ICYMIContextProvider(children) {
const tmp = useICYMIContextConstructor();
return <context.Provider value={{ width: tmp.width, margin: tmp.margin, inset: tmp.inset }}>{arg0.children}</context.Provider>;
};