mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
15 lines
371 B
TypeScript
15 lines
371 B
TypeScript
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
|