diff --git a/packages/web/src/components/collection/mobile/CollectionHeader.tsx b/packages/web/src/components/collection/mobile/CollectionHeader.tsx index f721c37ad2b..d07a2f0f176 100644 --- a/packages/web/src/components/collection/mobile/CollectionHeader.tsx +++ b/packages/web/src/components/collection/mobile/CollectionHeader.tsx @@ -6,10 +6,12 @@ import { FeatureFlags } from '@audius/common/services' import { CommonState, OverflowAction, + PurchaseableContentType, cacheCollectionsSelectors, useEditPlaylistModal } from '@audius/common/store' import { + Box, Button, ButtonProps, Flex, @@ -24,6 +26,7 @@ import DynamicImage from 'components/dynamic-image/DynamicImage' import { UserLink } from 'components/link' import Skeleton from 'components/skeleton/Skeleton' import { StaticImage } from 'components/static-image/StaticImage' +import { GatedContentSection } from 'components/track/GatedContentSection' import { UserGeneratedText } from 'components/user-generated-text' import { useCollectionCoverArt } from 'hooks/useCollectionCoverArt' import { useFlag } from 'hooks/useRemoteConfig' @@ -97,6 +100,9 @@ const CollectionHeader = ({ lastModifiedDate, numTracks, isPlayable, + isStreamGated, + streamConditions, + access, duration, isPublished = false, isPublishing = false, @@ -119,6 +125,9 @@ const CollectionHeader = ({ }: MobileCollectionHeaderProps) => { const { isSsrEnabled } = useSsrContext() const { isEnabled: isEditAlbumsEnabled } = useFlag(FeatureFlags.EDIT_ALBUMS) + const { isEnabled: isPremiumAlbumsEnabled } = useFlag( + FeatureFlags.PREMIUM_ALBUMS_ENABLED + ) const collection = useSelector((state: CommonState) => getCollection(state, { id: collectionId }) ) as Collection @@ -236,6 +245,26 @@ const CollectionHeader = ({ {isPlayable ? ( ) : null} + {isPremiumAlbumsEnabled && + isAlbum && + streamConditions && + collectionId ? ( + + + + ) : null} + ) : ( - + {messages.purchased}  {trackOwner ? ( <>