decord/source/modules/collectibles/CollectiblesAnalyticsContext.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9212
// Function ID: 9213
2026-07-29 08:29:29 +00:00
// Name: context
// Dependencies: [19, 21, 2]
// Exports: CollectiblesAnalyticsProvider, useCollectiblesAnalyticsContext
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 9212 (context)
import importAllResult from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c0 = importAllResult;
let context = importAllResult.createContext(null);
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/collectibles/CollectiblesAnalyticsContext.tsx");
2026-07-20 16:05:17 +00:00
export const CollectiblesAnalyticsContext = context;
2026-07-29 08:29:29 +00:00
export const useCollectiblesAnalyticsContext = function useCollectiblesAnalyticsContext() {
return importAllResult.useContext(context);
};
2026-07-20 16:05:17 +00:00
export const CollectiblesAnalyticsProvider = function CollectiblesAnalyticsProvider(children) {
const newValue = children.newValue;
2026-08-24 06:08:38 +00:00
context = undefined;
2026-07-29 08:29:29 +00:00
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
});
2026-07-20 16:05:17 +00:00
};