// import axios from 'axios'
// import Cookies from 'js-cookie'
// import * as types from '../mutation-types'

// // state
// export const state = {
//   booking: null
// }

// // getters
// export const getters = {
//   booking: state => state.booking,
// }

// // mutations
// export const mutations = {
//   [types.FETCH_BOOKING_SUCCESS] (state, { booking }) {
//     state.booking = booking
//   },

//   [types.FETCH_BOOKING_FAILURE] (state) {
//     state.booking = null
//   },

// }

// // actions
// export const actions = {
//   async fetchBooking ({ commit }) {
//     try {
//       const { data } = await axios.get('/api/user')

//       commit(types.FETCH_BOOKING_SUCCESS, { booking: data })
//     } catch (e) {
//       commit(types.FETCH_BOOKING_FAILURE)
//     }
//   }
// }
