decord/beta/source/modules/icymi/useICYMITabBadge.tsx
github-actions 6fbb1b046c chore: update source for beta 347.8
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-22 14:21:44 +00:00

52 lines
1.5 KiB
TypeScript

// Module ID: 16734
// Function ID: 16735
// Name: useICYMITabBadge
// Dependencies: [8611, 558, 568, 504, 2]
// Exports: icymiTabBadgeShown
// Module 16734 (useICYMITabBadge)
import initialize from "initialize" /* 504 */;
import c from "c" /* 568 */;
import ICYMIStore from "ICYMIStore" /* 8611 */;
require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/icymi/useICYMITabBadge.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(5);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [ICYMIStore];
const fn = function o() {
return ICYMIStore.hasNewContent();
};
const items1 = [];
cResult[0] = items;
cResult[1] = fn;
cResult[2] = items1;
tmp4 = items;
tmp5 = fn;
tmp6 = items1;
} else {
[tmp4, tmp5, tmp6] = cResult;
}
const stateFromStores = initialize.useStateFromStores(tmp4, tmp5, tmp6);
if (cResult[3] !== stateFromStores) {
const obj2 = { value: 0, showDot: stateFromStores };
cResult[3] = stateFromStores;
cResult[4] = obj2;
let tmp9 = obj2;
} else {
tmp9 = cResult[4];
}
return tmp9;
}) : (() => {
const obj = { value: 0, showDot: null };
const items = [ICYMIStore];
obj.showDot = initialize.useStateFromStores(items, () => ICYMIStore.hasNewContent(), []);
return obj;
});
export const icymiTabBadgeShown = function icymiTabBadgeShown() {
return ICYMIStore.hasNewContent();
};