import { mapActions, mapGetters } from 'vuex';

import { defineComponent } from '@vue/composition-api';

export default defineComponent({
  methods: mapActions([
    'UseScoreClone',
    'UserFetch',
    'UserLogin',
    'UserLogout',
    'AppInitUrl',
    'SetAppTitle',
    'SetTabActive',
    'SetUseShopManager',
    'ShopeeSellerInit',
    'ShopeeGetProduct',
    'ShopeeKeywordAdd',
    'ShopeeKeywordFetch',
    'SetAppLoading',
    'SetMenuActive',
    'SetRouterCurrent',
    'SetRouterHistory',
    'RouterBack',
    'RouterTo',
    'Router404',
    'RouterLogin',
    'RouterPath',
  ]),
  computed: mapGetters([
    'getListPlatform',
    'getUseShopManager',
    'getProfileId',
    'getBrowserIp',
    'getShopeeShopRef',
    'getShopeeShopImage',
    'getShopeeShopId',
    'getShopeeShopName',
    'getShopeeKeywordCollection',
    'getShopeeSellerAuthed',
    'getUrlCurrent',
    'getRouterCurrent',
    'getRouterHistory',
    'getNotifyApp',
    'getNotifyBanner',
    'getAppInfo',
    'getUserId',
    'getToken',
    'getIsVipPlus',
    'getUsageGptWriter',
    'getRouterUrl',
    'getIsPaidVip',
    'getIsPaidPlan',
    'getIsAuthed',
    'getUserPlan',
    'getScoreClone',
    'getTimeExpried',
    'getUsername',
    'getAppTitle',
    'getPassword',
    'getUserData',
    'getScoreClone',
    'getTabActive',
    'getProductShopeeLoaded',
    'getProductShopee',
    'getAppLoading',
    'getMenuActive',
    'getBetaMode',
  ]),
});
