import { useStar } from '@app/hooks/library' import colors from '@app/styles/colors' import React from 'react' import { PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native' import IconFA from 'react-native-vector-icons/FontAwesome' import PressableOpacity from './PressableOpacity' export const Star = React.memo<{ starred: boolean size: number }>(({ starred, size }) => { return ( ) }) export const PressableStar = React.memo<{ id: string type: 'album' | 'artist' | 'song' size: number style?: StyleProp | ((state: PressableStateCallbackType) => StyleProp) | undefined }>(({ id, type, size, style }) => { const { starred, toggleStar } = useStar(id, type) return ( ) })