1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 //this file can probably be removed - lk
7 import { Dispatch, compose } from 'redux';
8 import { connect } from 'react-redux';
9 import { ConfirmationDialog } from 'components/confirmation-dialog/confirmation-dialog';
10 import { withDialog, WithDialogProps } from 'store/dialog/with-dialog';
11 import { removeProcessPermanently, REMOVE_MANY_PROCESSES_DIALOG } from 'store/processes/processes-actions';
13 const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
16 props.data.list.forEach((uuid: string) => dispatch<any>(removeProcessPermanently(uuid)));
20 export const RemoveManyProcessesDialog = compose(withDialog(REMOVE_MANY_PROCESSES_DIALOG), connect(null, mapDispatchToProps))(ConfirmationDialog);