import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { createSubscribedElement } from '../../UnstatedUtils'; import AppContainer from '../../../services/AppContainer'; // import { toastSuccess, toastError } from '../../../util/apiNotification'; class ExportTableMenu extends React.Component { render() { const { t } = this.props; return (
); } } ExportTableMenu.propTypes = { t: PropTypes.func.isRequired, // i18next appContainer: PropTypes.instanceOf(AppContainer).isRequired, fileName: PropTypes.string.isRequired, onZipFileStatRemove: PropTypes.func.isRequired, }; /** * Wrapper component for using unstated */ const ExportTableMenuWrapper = (props) => { return createSubscribedElement(ExportTableMenu, props, [AppContainer]); }; export default withTranslation()(ExportTableMenuWrapper);