23 lines
1,014 B
TypeScript
23 lines
1,014 B
TypeScript
// Module ID: 15560
|
|
// Function ID: 15561
|
|
// Name: context
|
|
// Dependencies: [19, 21, 1474, 712, 2]
|
|
// Exports: ICYMIContextProvider, useICYMIContextConstructor
|
|
|
|
// Module 15560 (context)
|
|
import { jsx } from "jsxProd";
|
|
|
|
const context = require("noop").createContext({ width: 0, margin: 0, inset: 0 });
|
|
const result = require("useWindowDimensions").fileFinishedImporting("modules/icymi/native/ICYMIContext.tsx");
|
|
|
|
export const ICYMIContext = context;
|
|
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 };
|
|
};
|
|
export const ICYMIContextProvider = function ICYMIContextProvider(children) {
|
|
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>;
|
|
};
|