<template>
  <div class="container">
    <div class="container">
      <div class="row">
        <div class="col-md-12 col-lg-8">
          <div class="title-box-d">
            <br />
            <h1 class="title-d" style="text-align:left; font-size: 250%">My Cart</h1>
          </div>
        </div>
      </div>
      <!-- ListView -->
      <ListView :items="cartItems" :displayColumns="columns" :displayFormats="formats" />
    </div>
  </div>
</template>

<script>
import { mapState, mapActions } from "vuex";
import ListView from "../shared/listView";

export default {
  name: "MyCart",
  components: {
    ListView
  },
  data() {
    return {
      wait: true,
      columns: ["image", "name", "description", "qty", "subTotal"],
      formats: ["image", "", "", "", "money"]
    };
  },
  methods: {
    New() {}
  },
  computed: {
    ...mapState("cart", ["cartItems"])
  }
};
</script>
