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

24 lines
1,014 B
TypeScript
Raw Normal View History

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