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

14 lines
771 B
TypeScript

// Metro module 7955 (f7956).
import _slicedToArray from "../../../_bundle/_slicedToArray";
import CollectiblesCategoryStore from "../CollectiblesCategoryStore";
import CollectiblesPurchaseStore from "../CollectiblesPurchaseStore";
import { useStateFromStoresArray, useStateFromStores } from "../../../_bundle/defaultAreStatesEqual";
export default function useCollectiblesData(c16126_0) {
const r15 = _slicedToArray(useStateFromStoresArray([CollectiblesCategoryStore], () => [CollectiblesCategoryStore.getCategoryForProduct(c16126_0), CollectiblesCategoryStore.getProduct(c16126_0)]), 2);
return {
category: r15[0],
product: r15[1],
purchase: useStateFromStores([CollectiblesPurchaseStore], () => CollectiblesPurchaseStore.getPurchase(c16126_0))
};
};