import React from 'react'; import { connect } from 'react-redux'; import { Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap'; import { deleteServer } from './reducers/server'; export const DeleteServerModal = ({ server, deleteServer, toggle, history, isOpen }) => { const closeModal = () => { deleteServer(server); toggle(); history.push('/'); }; return ( Delete server

Are you sure you want to delete server {server ? server.name : ''}?

No data will be deleted, only the access to that server will be removed from this host. You can create it again at any moment.

); }; export default connect(null, { deleteServer })(DeleteServerModal);