This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,17 @@
// Metro module 8094 (f8095).
import CollectiblesCategoryStore from "../../CollectiblesCategoryStore";
import CollectiblesPurchaseStore from "../../CollectiblesPurchaseStore";
import { isProfileFrameRecord } from "../../records/ProfileFrameRecord";
import { useStateFromStores } from "../../../../_bundle/Module589";
export default function useProfileFrame(c16244_0) {
return useStateFromStores([CollectiblesCategoryStore, CollectiblesPurchaseStore], () => {
if (c16244_0 != null) {
const product = CollectiblesCategoryStore.getProduct(c16244_0);
if (isProfileFrameRecord(product == null ? void 0 : product.items[0])) {
return product.items[0];
}
const purchase = CollectiblesPurchaseStore.getPurchase(c16244_0);
return isProfileFrameRecord(purchase == null ? void 0 : purchase.items[0]) ? purchase.items[0] : void 0;
}
});
};