import React from 'react' import PropTypes from 'prop-types' import { translate } from 'react-i18next' import TableSwitcher from '../common/TableSwitcher/TableSwitcher' import { NOTIFICATION_SUBSCREENS } from '../../../../../redux/modules/appState/share/tabs' import { Button } from 'reactstrap' class TopBar extends React.Component { static propTypes = { actions: PropTypes.object.isRequired, tables: PropTypes.array.isRequired, tableVisible: PropTypes.string.isRequired, t: PropTypes.func.isRequired } onCreate = (type) => () => { const { actions, tableVisible } = this.props actions.startCreateNotification(type, tableVisible) } loadTable = (type) => { this.props.actions.shareTables[type].loadTable(null) } render() { const { t, tables, tableVisible, actions } = this.props return (
) } } export default translate(['tabsContent'], { wait: true })(TopBar)