import { View, Pressable, StyleSheet } from 'react-native'; import { Image } from 'expo-image'; import { Ionicons } from '@expo/vector-icons'; import { Text } from '@/components/Text'; import { colors, radius, spacing } from '@/theme'; import { artworkUri } from '@/library/artwork'; import type { Artist } from '@/types/library'; export function ArtistRow({ artist, onPress }: { artist: Artist; onPress: () => void }) { return ( {artist.artwork_hash ? ( ) : ( )} {artist.artist} {artist.track_count} {artist.track_count === 1 ? 'track' : 'tracks'} ); } const styles = StyleSheet.create({ row: { flexDirection: 'row', alignItems: 'center', paddingVertical: spacing.sm + 2, gap: spacing.md, borderBottomColor: colors.glassBorder, borderBottomWidth: StyleSheet.hairlineWidth, }, art: { width: 44, height: 44, borderRadius: radius.pill, backgroundColor: colors.bgTertiary, alignItems: 'center', justifyContent: 'center', overflow: 'hidden', }, artImage: { width: '100%', height: '100%', }, meta: { flex: 1, }, });