mirror of
https://github.com/tooot-app/app
synced 2025-04-26 07:58:48 +02:00
31 lines
686 B
TypeScript
31 lines
686 B
TypeScript
import React from 'react'
|
|
import { StyleSheet, Text, View } from 'react-native'
|
|
import { StyleConstants } from '@utils/styles/constants'
|
|
import { useTheme } from '@utils/styles/ThemeManager'
|
|
|
|
export interface Props {
|
|
heading: string
|
|
}
|
|
|
|
const MenuHeader: React.FC<Props> = ({ heading }) => {
|
|
const { theme } = useTheme()
|
|
|
|
return (
|
|
<View style={styles.base}>
|
|
<Text style={[styles.text, { color: theme.secondary }]}>{heading}</Text>
|
|
</View>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
base: {
|
|
paddingBottom: StyleConstants.Spacing.S
|
|
},
|
|
text: {
|
|
...StyleConstants.FontStyle.S,
|
|
fontWeight: StyleConstants.Font.Weight.Bold
|
|
}
|
|
})
|
|
|
|
export default MenuHeader
|