<template>
  <div v-if="authStore.user != null">
    <img class='avatar' :src="authStore.user.avatar"/>
    <ProfileModulesDisplayName/>
  </div>
</template>
<script setup lang="ts">
  const authStore = useAuthStore()
  onMounted(() => {
    if (authStore.user){
      authStore.user.sudo_token = null
    }
  })
</script>

<style lang="scss">

img.avatar {
  display: block;
  margin-top:0.75em;
  margin-inline: auto;
  border-radius: 50%;
  //border: 5px solid blueviolet;
}

.modale-btns{
  display: flex;
  gap:1em;

}
</style>