<template>
    <img v-if="user.avatar" />
    <User v-else class="w-8 h-8 p-1.5 rounded-3xl bg-slate-400 dark:bg-gray-600 text-white" />
</template>
<script setup>
import { storeToRefs } from 'pinia'
import { useUserStore } from '@/stores/user'
import { User } from '@vicons/tabler'

const { user } = storeToRefs(useUserStore())
</script>
