import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import Touch from '../../../utils/touch'; import { CustomIcon } from '../../../lib/Icons'; import I18n from '../../../i18n'; import styles from '../styles'; import DisclosureIndicator from '../../../containers/DisclosureIndicator'; import { themes } from '../../../constants/colors'; import { withTheme } from '../../../theme'; const Directory = React.memo(({ goDirectory, theme, searching }) => { if (searching > 0) { return null; } const color = { color: themes[theme].headerSecondaryText }; return ( {I18n.t('Directory')} ); }); Directory.propTypes = { searching: PropTypes.bool, goDirectory: PropTypes.func, theme: PropTypes.string }; export default withTheme(Directory);