import { computed, defineComponent, onMounted, ref, watch } from 'vue'
import { useUserStore } from '@store/UserStore'
import { useRoute, useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { useQuasar } from 'quasar'
import { CMyCardPopup } from '@src/components/CMyCardPopup'
import { CMyCardService } from '@src/components/CMyCardService'
import { shared_consts } from '@src/common/shared_vuejs'
import { CMyPage } from '@src/components/CMyPage'
import { CCheckIfIsLogged } from '@src/components/CCheckIfIsLogged'
import { toolsext } from '@store/Modules/toolsext'
import { tools } from '@tools'

export default defineComponent({
  name: 'mypagebacheca',
  components: { CMyCardService, CMyPage, CCheckIfIsLogged },
  props: {},
  setup() {
    const userStore = useUserStore()
    const $route = useRoute()
    const $q = useQuasar()
    const { t } = useI18n()

    const idBacheca = computed(() => $route.params.idBacheca ? $route.params.idBacheca.toString() : 0)

    return {
      t,
      idBacheca,
      toolsext,
      tools,
      shared_consts,
    }
  }
})
