mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
35 lines
859 B
TypeScript
35 lines
859 B
TypeScript
import font from '@app/styles/font'
|
|
import React from 'react'
|
|
import { Text, View, StyleSheet, ViewStyle } from 'react-native'
|
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
|
|
const NothingHere = React.memo<{
|
|
height?: number
|
|
width?: number
|
|
style?: ViewStyle
|
|
}>(({ height, width, style }) => {
|
|
height = height || 200
|
|
width = width || 200
|
|
|
|
return (
|
|
<View style={[styles.container, { height, width }, style]}>
|
|
<Icon name="music-rest-quarter" color={styles.text.color} size={width / 2} />
|
|
<Text style={[styles.text, { fontSize: width / 8 }]}>Nothing here...</Text>
|
|
</View>
|
|
)
|
|
})
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
opacity: 0.25,
|
|
},
|
|
text: {
|
|
fontFamily: font.lightItalic,
|
|
color: 'white',
|
|
},
|
|
})
|
|
|
|
export default NothingHere
|