<template>
  <div>
    <div class="mb-10">
      <product-update />
    </div>
    <div>
      <product-list @on-select="onSeclectProduct" />
    </div>
  </div>
</template>

<script>
import ProductList from '@/vue/components/Shopee/Seller/Product/List.vue';
import ProductUpdate from '@/vue/components/Shopee/Seller/Product/Update.vue';
import { useSellerShopeeProductUpdateStore } from '@/vue/pinia/shopee/seller/product/update';

export default {
  name: 'ShopeeSellerProduct',
  components: {
    'product-list': ProductList,
    'product-update': ProductUpdate,
  },
  methods: {
    onSeclectProduct(list) {
      useSellerShopeeProductUpdateStore().setListProduct(list);
    },
  },
};
</script>
