decord/source/modules/collectibles/CollectiblesAnalyticsContext.tsx
2026-07-29 08:29:29 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 8663
// Function ID: 8664
// Name: context
// Dependencies: [19, 21, 2]
// Exports: CollectiblesAnalyticsProvider, useCollectiblesAnalyticsContext
// Module 8663 (context)
import importAllResult from "noop";
import { jsx } from "jsxProd";
let c0 = importAllResult;
let context = importAllResult.createContext(null);
const result = require("set").fileFinishedImporting("modules/collectibles/CollectiblesAnalyticsContext.tsx");
export const CollectiblesAnalyticsContext = context;
export const useCollectiblesAnalyticsContext = function useCollectiblesAnalyticsContext() {
return importAllResult.useContext(context);
};
export const CollectiblesAnalyticsProvider = function CollectiblesAnalyticsProvider(children) {
const newValue = children.newValue;
let context;
context = newValue.useContext(context);
const items = [context, newValue];
return context(context.Provider, {
value: newValue.useMemo(() => {
const merged = Object.assign(context);
const merged1 = Object.assign(newValue);
return {};
}, items),
children: children.children
});
};