import React from 'react' import PropTypes from 'prop-types' import { translate } from 'react-i18next' import { EMAILS_SUBSCREENS } from '../../../../../redux/modules/appState/share/tabs' import { Button } from 'reactstrap' export class TopBar extends React.Component { static propTypes = { actions: PropTypes.object.isRequired, tableState: PropTypes.object.isRequired, t: PropTypes.func.isRequired }; onCreate = (type) => () => { const { actions } = this.props actions.startCreateNotification(type, 'emails', 'emails') }; goToFiltersTable = () => { const { actions } = this.props actions.switchShareSubScreen('emails', EMAILS_SUBSCREENS.FILTERS_TABLE) }; render () { const { t, tableState: { filter } } = this.props const filterName = filter ? `${filter.name} (${t('manageEmailsTab.' + filter.type)})` : t('manageEmailsTab.allEmails') return (

{t('manageEmailsTab.currentFilter') + ': '}{" "} {filterName}

{/* */}
) } } export default translate(['tabsContent'], { wait: true })(TopBar)