decord/beta/source/modules/activities/utils/useCurrentEmbeddedActivity.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

34 lines
1.1 KiB
TypeScript

// Module ID: 9716
// Function ID: 9717
// Name: useCurrentEmbeddedActivity
// Dependencies: [2044, 558, 568, 504, 2]
// Module 9716 (useCurrentEmbeddedActivity)
import initialize from "initialize" /* 504 */;
import c from "c" /* 568 */;
import EmbeddedActivitiesStore from "EmbeddedActivitiesStore" /* 2044 */;
require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/utils/useCurrentEmbeddedActivity.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(2);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [EmbeddedActivitiesStore];
const fn = function u() {
return currentEmbeddedActivity.getCurrentEmbeddedActivity();
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
return initialize.useStateFromStores(tmp4, tmp5);
}) : (() => {
const items = [EmbeddedActivitiesStore];
return initialize.useStateFromStores(items, () => currentEmbeddedActivity.getCurrentEmbeddedActivity());
});