pay for music

This commit is contained in:
2026-02-23 16:22:03 +01:00
parent 8648793d64
commit 947d0e9641
6 changed files with 406 additions and 122 deletions
+2 -14
View File
@@ -1,4 +1,3 @@
import FullscreenIntroVideo from '../../components/FullscreenIntroVideo'
import { Image as ExpoImage } from 'expo-image'
import React, { useCallback, useMemo, useState } from 'react'
import { Pressable, Text, View } from 'react-native'
@@ -6,19 +5,14 @@ import useMinuit from 'react-native-minuit/src/hooks/useMinuit.js'
import { background } from '../../assets'
import GradientButton from '../../components/GradientButton'
import MusicLandHeader from '../../components/MusicLandHeader'
import { isWeb } from '../../hooks/useLayoutType'
import Page from '../../layouts/Page'
import { Routes } from '../../navigation'
import { goBack, navigate } from '../../navigation/NavigationService'
import { useUser, useUserData } from '../../providers/UserDataProvider'
import { useUserData } from '../../providers/UserDataProvider'
import { gutters, Palette, Style } from '../../styles'
import CreateLyricsHeader from '../Writing/components/CreateLyricsHeader'
const ValidateCover = () => {
const { selectedProject, updateProjectData } = useUserData()
const { videos } = useUser()
const benhaiUrl = isWeb ? videos?.benhaiWeb || null : videos?.benhai
const [showIntro, setShowIntro] = useState(null)
const { setIsLoading } = useMinuit()
const coverOptions = useMemo(() => {
@@ -91,17 +85,12 @@ const ValidateCover = () => {
if (!selectedOption) {
return
}
setShowIntro(benhaiUrl)
}
const handleCloseIntro = useCallback(() => {
setShowIntro(null)
navigate(Routes.SongDownload, {
project: selectedProject,
selectedOption,
coverOptions,
})
}, [coverOptions, selectedOption, selectedProject])
}
return (
<Page backgroundImg={background.studioBG2} headerType="NONE">
@@ -231,7 +220,6 @@ const ValidateCover = () => {
disabled={!selectedOption || isSelecting}
/>
</View>
<FullscreenIntroVideo url={showIntro} visible={!!showIntro} onClose={handleCloseIntro} />
</Page>
)
}