text: const INITIAL_STATE = {
      items: [],
      shipping_value: 0
  }
  
  export default function cart(state = INITIAL_STATE, action) {
      switch(action.type) {
          case 'ADD':
              return {
                  ...state,
                  items: [
                      ...state.items,
                      {
                          price: +((Math.random() * 400) + 1).toFixed(2)
                      }
                  ]
              }
          case 'SET_SHIPPING':
              return {
                  ...state,
                  shipping_value: Math.floor(Math.random() *100)+1
              }
          default:
              return state
      }
  }