<script>

import { userStore } from '@/PiniaStores/UserStore.js'
import {useRouter} from 'vue-router'

export default {
  data(){
    return {
      userStore_: userStore(),
      router: useRouter()
    }
  },
}

</script>

<template>

  <a v-on:click="userStore_.clearLocalStorage()" @click="router.push('/login')" v-if="userStore_.data.role!=='UN_AUTHENTICATED'" class="btn btn-dark">Logout</a>

</template>

<style scoped>

</style>
