tooot/src/components/Menu/Header.tsx

28 lines
625 B
TypeScript
Raw Normal View History

2020-11-22 00:46:23 +01:00
import React from 'react'
import { View } from 'react-native'
2020-12-13 14:04:25 +01:00
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import CustomText from '@components/Text'
2020-11-22 00:46:23 +01:00
export interface Props {
heading: string
}
const MenuHeader: React.FC<Props> = ({ heading }) => {
2022-02-12 14:51:01 +01:00
const { colors } = useTheme()
2020-12-03 01:28:56 +01:00
return (
<View style={{ paddingBottom: StyleConstants.Spacing.S }}>
<CustomText
fontStyle='S'
fontWeight='Bold'
style={{ color: colors.secondary }}
>
{heading}
</CustomText>
2020-12-03 01:28:56 +01:00
</View>
)
2020-11-22 00:46:23 +01:00
}
export default MenuHeader