// Module ID: 322
// Function ID: 323
// Name: createContext
// Dependencies: [19, 21]
// Exports: VirtualizedListCellContextProvider, VirtualizedListContextProvider, VirtualizedListContextResetter
// Module 322 (createContext)
import noopAll from "noop" /* 19 */;
import noop from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
noopAll;
({ useContext: c0, useMemo: closure_1, createContext } = noop);
const context = createContext(null);
export const VirtualizedListContext = context;
export const VirtualizedListContextResetter = function VirtualizedListContextResetter(children) {
return {arg0.children};
};
export const VirtualizedListContextProvider = function VirtualizedListContextProvider(children) {
const value = children.value;
closure_0 = value;
const items = [, , , , ];
({ getScrollMetrics: arr[0], horizontal: arr[1], getOutermostParentListRef: arr[2], registerAsNestedChild: arr[3], unregisterAsNestedChild: arr[4] } = value);
return ({ cellKey: null, getScrollMetrics: value.getScrollMetrics, horizontal: value.horizontal, getOutermostParentListRef: value.getOutermostParentListRef, registerAsNestedChild: value.registerAsNestedChild, unregisterAsNestedChild: value.unregisterAsNestedChild }), items)}>{arg0.children};
};
export const VirtualizedListCellContextProvider = function VirtualizedListCellContextProvider(cellKey) {
cellKey = cellKey.cellKey;
let callback;
const tmp = cellKey(context);
callback = tmp;
const items = [tmp, cellKey];
return {
let tmp2 = null;
if (null != closure_1) {
const obj = {};
const merged = Object.assign(tmp);
obj.cellKey = cellKey;
tmp2 = obj;
}
return tmp2;
}, items)}>{arg0.children};
};