import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import Touch from '../../../utils/touch'; import I18n from '../../../i18n'; import styles from '../styles'; import { themes } from '../../../constants/colors'; import { withTheme } from '../../../theme'; import UnreadBadge from '../../../presentation/UnreadBadge'; const Queue = React.memo(({ searching, goQueue, queueSize, inquiryEnabled, theme }) => { if (searching > 0 || !inquiryEnabled) { return null; } return ( {I18n.t('Queued_chats')} ); }); Queue.propTypes = { searching: PropTypes.bool, goQueue: PropTypes.func, queueSize: PropTypes.number, inquiryEnabled: PropTypes.bool, theme: PropTypes.string }; export default withTheme(Queue);