text: const CBD_IN_CART = "CBD_IN_CART";
  const CBD_NOT_IN_CART = "CBD_NOT_IN_CART";
  const TREATMENTS_CART_RESET = "TREATMENTS_CART_RESET";
  
  const cbdInCartReducer = (state = { in_cart: false }, action) => {
    switch (action.type) {
      case CBD_IN_CART:
        return { ...state, in_cart: true };
      case TREATMENTS_CART_RESET:
      case CBD_NOT_IN_CART:
        return { ...state, in_cart: false };
      default:
        return { ...state };
    }
  };
  
  export default cbdInCartReducer;
  