Files
discord-decomp/modules/collectibles/utils/WideBannerDismissibleContentVersion.tsx
T
2026-11-01 12:12:55 +02:00

15 lines
643 B
TypeScript

// Metro module 13126 (f13127).
import CollectiblesShopHomeStore from "../CollectiblesShopHomeStore";
import { CollectibleShopTab } from "../CollectiblesShopConstants";
import { ShopBlockType } from "../../../_bundle/Module5829";
export function getWideBannerDismissibleContentVersion() {
for (const item of [CollectibleShopTab.HOME, CollectibleShopTab.ORBS, CollectibleShopTab.CATALOG]) {
const r31 = CollectiblesShopHomeStore.getShopBlocks(item).find((item) => item.type === ShopBlockType.WIDE_BANNER);
if (r31?.dismissibleContentVersion == null) {
continue;
}
return r31.dismissibleContentVersion;
}
return 0;
}