text: import axios from 'axios';
  
  export const userCart = async(cart, authtoken) => {
      return await axios.post(`${process.env.REACT_APP_API}/user/cart`, {cart}, {
          headers:{
          authtoken
      },
  }
  );
  };
  
  export const getUserCart = async(authtoken) => {
      return await axios.get(`${process.env.REACT_APP_API}/user/cart`, {
          headers:{
          authtoken
      },
  });
  };
  
  export const emptyUserCart = async(authtoken) => {
      return await axios.delete(`${process.env.REACT_APP_API}/user/cart`, {
          headers:{
          authtoken
      },
  });
  };
  
  export const saveUserAddress = async(authtoken, address) => {
      return await axios.post(`${process.env.REACT_APP_API}/user/address`, {address}, {
          headers:{
          authtoken
      },
  }
  );
  };
  
  export const applyCoupan = async(authtoken, coupan) => {
      return await axios.post(`${process.env.REACT_APP_API}/user/cart/coupan`, {coupan}, {
          headers:{
          authtoken
      },
  }
  );
  };