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,15 @@
// Metro module 13730 (f13731).
import { useFetchCollectiblesProduct } from "../../hooks/useFetchCollectiblesProduct";
import { CollectiblesItemType } from "../../../../_bundle/Module1901";
import { getNameplateData } from "../utils";
export function useFetchNameplate(a0) {
const fetchCollectiblesProduct = useFetchCollectiblesProduct(a0);
const { product, isFetching } = fetchCollectiblesProduct;
const nameplateRecord = (product == null ? void 0 : product.items[0]?.type) === CollectiblesItemType.NAMEPLATE ? product.items[0] : void 0;
return {
nameplateProduct: product,
nameplateRecord,
nameplateData: getNameplateData(nameplateRecord),
isFetching
};
}
@@ -0,0 +1,17 @@
// Metro module 9088 (f9089).
import { useMemo } from "react";
import GuildMemberStore from "../../../../stores/GuildMemberStore";
import { useStateFromStores } from "../../../../_bundle/Module589";
import { getNameplateData } from "../utils";
export function useNameplate({ user, guildId }) {
const stateFromStores = useStateFromStores([GuildMemberStore], () => guildId != null ? user != null ? GuildMemberStore.getMember(guildId, user.id) : null : null);
return useMemo(() => {
if (user != null) {
let r16 = getNameplateData(stateFromStores == null ? void 0 : stateFromStores.collectibles?.nameplate);
if (r16 == null) {
r16 = user.nameplate;
}
return r16;
}
}, [stateFromStores, user]);
}