text: import * as productAction from '../actiontypes/productActionTypes'
  import * as ProdcutApis from '../../services/product'
  
  export const Product = params => async dispatch => {
    const res = await ProdcutApis.getProduct()
  
    dispatch({
      type: productAction.getProduct,
      payload: res.data
    })
    return res.data
  }
  export const AddProduct = params => async dispatch => {
    const res = await ProdcutApis.AddProduct(params)
  
    dispatch({
      type: productAction.addProduct,
      payload: res.data
    })
    return res.data
  }
  export const EditProduct = params => async dispatch => {
    const res = await ProdcutApis.EditProduct(params)
  
    dispatch({
      type: productAction.EditProduct,
      payload: res.data
    })
    return res.data
  }
  