import React from 'react'; import { View, Text } from 'react-native'; import { useTheme } from '../../../../theme'; import { themes } from '../../../../lib/constants'; import { CustomIcon } from '../../../../containers/CustomIcon'; import * as List from '../../../../containers/List'; import styles from './styles'; import UnreadBadge from '../../../../containers/UnreadBadge'; import i18n from '../../../../i18n'; interface IOmnichannelQueue { queueSize?: number; onPress(): void; } const OmnichannelQueue = ({ queueSize, onPress }: IOmnichannelQueue) => { const { theme } = useTheme(); return ( <> } color={themes[theme].bodyText} onPress={queueSize ? onPress : undefined} styleTitle={styles.titleOmnichannelQueue} right={() => ( {queueSize ? ( <> ) : ( {i18n.t('Empty')} )} )} /> ); }; export default OmnichannelQueue;