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,22 @@
// Metro module 8082 (f8083).
import { useEffect } from "react";
import useFramePreviewOverrideFrame_native from "./useFramePreviewOverrideFrame.native";
import { useIsProfileFramesEnabled } from "../../experiments/CollectiblesProfileFramesExperiment";
import useProfileFrame from "./useProfileFrame";
import { maybeFetchCollectiblesProduct } from "../../CollectiblesActionCreators";
export default function useMaybeFetchProfileFrame(a0, a1) {
let r13 = useFramePreviewOverrideFrame_native();
const isProfileFramesEnabled = useIsProfileFramesEnabled(a1);
const profileFrame = useProfileFrame(a0);
const r20 = r13 == null && isProfileFramesEnabled && a0 != null && profileFrame == null;
let c16239_1 = r20;
useEffect(() => {
if (c16239_1) {
maybeFetchCollectiblesProduct(a0);
}
}, [r20, a0]);
if (r13 == null) {
r13 = isProfileFramesEnabled ? profileFrame : void 0;
}
return r13;
};