<script>

import { mapState } from 'pinia'
import { UserStore } from '@/stores/user'


import LoginBlock from '@components/block/LoginBlock.vue'
import UserTools from '@components/block/UserTools.vue'


// import MA from '/api/ma-axios'

export default {
  props: ['title', 'loginblock'],
  data(){
    return {
      block: null
    }
  },
  computed: {
    ...mapState(UserStore,['isloggedin'])
  },
  methods: {
    
  },
  components: {
    LoginBlock,
    UserTools
  }
}

</script>

<template>
  <UserTools v-if="isloggedin" />
  <LoginBlock v-else/>
</template>

<style lang="css" scoped>

</style>
