import Button from '@app/components/Button' import CoverArt from '@app/components/CoverArt' import GradientBackground from '@app/components/GradientBackground' import ImageGradientScrollView from '@app/components/ImageGradientScrollView' import NothingHere from '@app/components/NothingHere' import SongItem from '@app/components/SongItem' import { albumAtomFamily } from '@app/state/music' import { useSetQueue } from '@app/state/trackplayer' import colors from '@app/styles/colors' import font from '@app/styles/font' import { useNavigation } from '@react-navigation/native' import { useAtomValue } from 'jotai/utils' import React, { useEffect } from 'react' import { ActivityIndicator, StyleSheet, Text, View } from 'react-native' const AlbumDetails: React.FC<{ id: string }> = ({ id }) => { const album = useAtomValue(albumAtomFamily(id)) const setQueue = useSetQueue() if (!album) { return <> } const Songs = () => ( <>