decord/source/modules/icymi/useICYMITabBadge.tsx

24 lines
721 B
TypeScript
Raw Normal View History

// Module ID: 16474
// Function ID: 16475
2026-07-20 16:05:17 +00:00
// Name: useICYMITabBadge
// Dependencies: [8400, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, icymiTabBadgeShown
// Module 16474 (useICYMITabBadge)
import initialize from "initialize" /* 504 */;
import ICYMIStore from "ICYMIStore" /* 8400 */;
2026-07-23 10:11:24 +00:00
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/icymi/useICYMITabBadge.tsx");
2026-07-20 16:05:17 +00:00
export default function useICYMITabBadge() {
const obj = { value: 0, showDot: null };
const items = [ICYMIStore];
obj.showDot = initialize.useStateFromStores(items, () => ICYMIStore.hasNewContent(), []);
2026-07-20 16:05:17 +00:00
return obj;
};
export const icymiTabBadgeShown = function icymiTabBadgeShown() {
return ICYMIStore.hasNewContent();
2026-07-20 16:05:17 +00:00
};