// Metro module 14612 (f14613). import { useMemo } from "react"; import { View } from "react-native"; import CollectiblesCategoryStore from "../CollectiblesCategoryStore"; import { createStyles } from "../../../design/components/Styles/native/createStyles"; import Module712 from "../../../_bundle/Module712"; import { useStateFromStores } from "../../../_bundle/Module589"; import { ShopBlockType } from "../../../_bundle/Module5829"; import { CollectiblesAnalyticsProvider } from "../CollectiblesAnalyticsContext"; import FramesHeroBlock from "./FramesHeroBlock"; import HeroBlock from "./HeroBlock"; import FeaturedBlock from "./FeaturedBlock"; import FeedBlock from "./FeedBlock"; import FramesProductShelfBlock from "./FramesProductShelfBlock"; import ShelfBlock from "./ShelfBlock"; const useStyles = createStyles({ shopBlockSpacing: { marginTop: Module712.space.PX_16 } }); export default ({ block, screen, preferVCPrice, framesBannerBlock }) => { let stateFromStores2; stateFromStores2 = void 0; const styles = useStyles(); const stateFromStores = useStateFromStores([CollectiblesCategoryStore], () => CollectiblesCategoryStore.categories); stateFromStores2 = useStateFromStores([CollectiblesCategoryStore], () => CollectiblesCategoryStore.products); const memo = useMemo(() => block.type === ShopBlockType.HERO ? `hero-${block.categoryStoreListingId}` : block.type === ShopBlockType.REWARD_HERO ? `reward-hero-${block.categoryStoreListingId}` : `${stateFromStores.size}-${stateFromStores2.size}`, [block, stateFromStores.size, stateFromStores2.size]); const type = block.type; if (ShopBlockType.HERO === type) { return {framesBannerBlock != null ? : } ; } if (ShopBlockType.FEATURED === type) { return ; } if (ShopBlockType.FEED === type) { return ; } if (ShopBlockType.FRAMES_PRODUCT_SHELF === type) { return ; } if (ShopBlockType.SHELF === type) { return ; } if (ShopBlockType.WIDE_BANNER !== type) { ShopBlockType.FRAMES_BANNER; } return null; };