import React from 'react'
import { translate } from 'react-i18next'
import PropTypes from 'prop-types'
import SortableTh from '../../../../common/Table/SortableTh'
import { MyEmailsTable } from '../NotificatoinsSubTab/MyEmailsTable' // default export doesn't work
import { ButtonGroup, Button } from 'reactstrap'
class EmailsTable extends MyEmailsTable {
static propTypes = {
t: PropTypes.func.isRequired,
tableState: PropTypes.object.isRequired,
actions: PropTypes.object.isRequired,
tableActions: PropTypes.object.isRequired,
deleteSingleText: PropTypes.string.isRequired,
deleteMultipleText: PropTypes.string.isRequired
};
nameClickAction = (item) => {
const { actions } = this.props
actions.startEditNotification(item, 'emails', 'emails')
};
defineColumns () {
return {
...super.defineColumns(),
owner: {
Header: ,
accessor: (item) => item.owner.email,
width: 170
}
}
}
onRefreshButtonClick = () => {
this.props.tableActions.loadTable({})
};
getColumns () {
return [
'selectCheckbox',
'name',
'type',
'owner',
'published',
'ScheduledTimes',
'sourcesCount',
'Recipients',
'active',
'delete'
]
}
getActionsPanel = () => {
const { t } = this.props
return (
)
};
}
export default translate(['tabsContent'], { wait: true })(EmailsTable)