content: import React from 'react'
  import * as dataActions from '../store/data/actions'
  import * as viewActions from '../store/view/actions'
  import { bindActionCreators } from 'redux'
  import { push } from 'react-router-redux'
  import { connect } from 'react-redux'
  import Edit from '../components/Edit/Edit'
  
  const EditContainer = props => {
    return (
      <Edit {...props} />
    )
  }
  
  const mapStateToProps = state => ({
    ...state.data
  })
  
  const mapDispatchToProps = dispatch => ({
    actions: bindActionCreators({
      setProductType: dataActions.setProductType,
      updateEditedProduct: dataActions.updateEditedProduct,
      mergeEditedToProducts: dataActions.mergeEditedToProducts,
      saveAllProducts: dataActions.saveAllProducts,
      saveEditedProduct: dataActions.saveEditedProduct,
      clearSearchInput: viewActions.clearSearchInput,
      changeLocation: push
    }, dispatch)
  })
  
  export default connect(
    mapStateToProps,
    mapDispatchToProps
  )(EditContainer)
  