2020-11-22 00:46:23 +01:00
|
|
|
import React from 'react'
|
2022-05-07 00:52:32 +02:00
|
|
|
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'
|
2022-05-07 00:52:32 +02:00
|
|
|
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 (
|
2022-05-07 00:52:32 +02:00
|
|
|
<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
|