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 : ''}. ); }; export default connect(null, { deleteServer })(DeleteServerModal);