2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { compose } from 'redux';
|
|
|
|
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props';
|
2023-03-09 22:00:28 +01:00
|
|
|
import { removeNetworkConfiguration } from '../../../../store/actions';
|
2021-02-04 19:15:23 +01:00
|
|
|
import ConfirmDeleteNetwork from './confirm-delete-network.component';
|
2019-07-02 14:13:02 +02:00
|
|
|
|
2020-02-15 21:34:12 +01:00
|
|
|
const mapDispatchToProps = (dispatch) => {
|
2019-07-02 14:13:02 +02:00
|
|
|
return {
|
2023-03-09 22:00:28 +01:00
|
|
|
removeNetworkConfiguration: (target) =>
|
|
|
|
dispatch(removeNetworkConfiguration(target)),
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2019-07-02 14:13:02 +02:00
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withModalProps,
|
2020-07-14 17:20:41 +02:00
|
|
|
connect(null, mapDispatchToProps),
|
2021-02-04 19:15:23 +01:00
|
|
|
)(ConfirmDeleteNetwork);
|