tooot/src/components/Menu/Container.tsx

25 lines
534 B
TypeScript
Raw Normal View History

2020-11-22 00:46:23 +01:00
import React from 'react'
2020-11-24 00:18:47 +01:00
import { StyleSheet, View } from 'react-native'
import { useTheme } from 'src/utils/styles/ThemeManager'
import constants from 'src/utils/styles/constants'
2020-11-22 00:46:23 +01:00
const MenuContainer: React.FC = ({ ...props }) => {
2020-11-24 00:18:47 +01:00
const { theme } = useTheme()
return (
<View style={[styles.base, { borderTopColor: theme.separator }]}>
{props.children}
</View>
)
2020-11-22 00:46:23 +01:00
}
2020-11-24 00:18:47 +01:00
const styles = StyleSheet.create({
base: {
borderTopWidth: 1,
marginBottom: constants.SPACING_M
}
})
2020-11-22 00:46:23 +01:00
export default MenuContainer