text: import React from 'react';
  import { connect } from 'react-redux';
  import { withRouter } from 'react-router';
  import { deleteCurrentCustomer } from '../actions';
  import Buttons from './components/buttons';
  
  const mapStateToProps = (state, ownProps) => ({
  	customer: state.customers.editCustomer
  });
  
  const mapDispatchToProps = (dispatch, ownProps) => ({
  	onDelete: () => {
  		dispatch(deleteCurrentCustomer());
  		ownProps.history.push('/customers');
  	}
  });
  
  export default withRouter(
  	connect(
  		mapStateToProps,
  		mapDispatchToProps
  	)(Buttons)
  );
  