import React from 'react' import PropTypes from 'prop-types' import { View } from 'react-native' import AppText from '../../app-text' import styles from '../../../styles' const SettingsSegment = ({ children, ...props }) => { const style = [styles.settingsSegment, props.style] if (props.last) style.push(styles.settingsSegmentLast) return ( { props.title && {props.title} } {children} ) } SettingsSegment.propTypes = { title: PropTypes.string } export default SettingsSegment