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 ArchiveFilesTableMenu extends React.Component {
render() {
const { t } = this.props;
return (
);
}
}
ArchiveFilesTableMenu.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 ArchiveFilesTableMenuWrapper = (props) => {
return createSubscribedElement(ArchiveFilesTableMenu, props, [AppContainer]);
};
export default withTranslation()(ArchiveFilesTableMenuWrapper);