// 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; };