mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 23:02:43 +01:00
impl starring everywhere
This commit is contained in:
14
app/components/Star.tsx
Normal file
14
app/components/Star.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import colors from '@app/styles/colors'
|
||||
import React from 'react'
|
||||
import IconFA from 'react-native-vector-icons/FontAwesome'
|
||||
|
||||
const Star = React.memo<{
|
||||
starred: boolean
|
||||
size: number
|
||||
}>(({ starred, size }) => {
|
||||
return (
|
||||
<IconFA name={starred ? 'star' : 'star-o'} color={starred ? colors.accent : colors.text.secondary} size={size} />
|
||||
)
|
||||
})
|
||||
|
||||
export default Star
|
||||
Reference in New Issue
Block a user