content: import React from 'react';
  import PropTypes from 'prop-types';
  import { Text } from 'react-native';
  
  import styles from './styles';
  import theme from '../../../theme';
  
  const { color } = theme;
  
  const TextInfo = ({ value, col, alignCenter }) =>
    (alignCenter
      ? <Text style={[styles.infoCenter, { color: col }]}>{value}</Text>
      : <Text style={[styles.info, { color: col }]}>{value}</Text>);
  
  TextInfo.propTypes = {
    value: PropTypes.string.isRequired,
    col: PropTypes.string,
    alignCenter: PropTypes.bool,
  };
  
  TextInfo.defaultProps = {
    col: color.white,
    alignCenter: true,
  };
  
  export default TextInfo;
  