2023-01-26 00:57:48 +01:00
|
|
|
import { StyleConstants } from '@utils/styles/constants'
|
|
|
|
import { useTheme } from '@utils/styles/ThemeManager'
|
|
|
|
import { View, ViewStyle } from 'react-native'
|
|
|
|
|
|
|
|
const Hr: React.FC<{ style?: ViewStyle }> = ({ style }) => {
|
|
|
|
const { colors } = useTheme()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<View
|
|
|
|
style={[
|
|
|
|
{
|
|
|
|
borderTopColor: colors.border,
|
|
|
|
borderTopWidth: 1,
|
|
|
|
height: 1,
|
2023-01-27 18:44:48 +01:00
|
|
|
paddingVertical: StyleConstants.Spacing.S
|
2023-01-26 00:57:48 +01:00
|
|
|
},
|
|
|
|
style
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Hr
|