mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
* To MMKV migration working * POC migrated font size settings * Moved settings to mmkv * Fix typos * Migrated contexts slice * Migrated app slice * POC instance emoji update * Migrated drafts * Migrated simple instance properties * All migrated! * Re-structure files * Tolerant of undefined settings * Can properly logging in and out including empty state
28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
import CustomText from '@components/Text'
|
|
import { StyleConstants } from '@utils/styles/constants'
|
|
import { useTheme } from '@utils/styles/ThemeManager'
|
|
import React from 'react'
|
|
import { View } from 'react-native'
|
|
|
|
export interface Props {
|
|
heading: string
|
|
}
|
|
|
|
const MenuHeader: React.FC<Props> = ({ heading }) => {
|
|
const { colors } = useTheme()
|
|
|
|
return (
|
|
<View style={{ paddingBottom: StyleConstants.Spacing.S }}>
|
|
<CustomText
|
|
fontStyle='S'
|
|
fontWeight='Bold'
|
|
style={{ color: colors.secondary }}
|
|
>
|
|
{heading}
|
|
</CustomText>
|
|
</View>
|
|
)
|
|
}
|
|
|
|
export default MenuHeader
|