<template>
  <div>
    <v-btn
      ref="btn"
      icon="fas fa-home"
      size="small"
      :href="!$can('display', 'freemium_dashboard_page') ? homeUrl : undefined"
      :to="$can('display', 'freemium_dashboard_page') ? homeUrl : undefined"
      class="on-primary"
    />
    <v-tooltip :activator="btn" :text="$t('welcome')" location="bottom" />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { useHomeUrl } from '~/composables/utils/useHomeUrl'

const { homeUrl } = useHomeUrl()

const btn = ref(null)
</script>

<style scoped></style>
