import { defineStore } from 'pinia';

export const useSellerShopeeProductUpdateStore = defineStore('shopee-seller-product-updater', {
  state() {
    /** @type {ShopeeSearchItemShop[]} */
    const listProduct = [];

    return {
      shopId: 0,
      listProduct,
    };
  },
  getters: {
    getListProduct() {
      return this.listProduct;
    },
  },
  actions: {
    setListProduct(listProduct = []) {
      this.listProduct = listProduct;
    },
    setShopId(shopId) {
      this.shopId = shopId;
    },
  },
});
