tethys.backend/resources/js/Components/UserAvatarCurrentUser.vue

15 lines
356 B
Vue
Raw Normal View History

2023-03-03 15:54:28 +00:00
<script setup>
import { computed } from 'vue'
// import { usePage } from '@inertiajs/vue3'
import { usePage } from '@inertiajs/vue3'
import UserAvatar from '@/Components/UserAvatar.vue'
const userName = computed(() => usePage().props.auth?.user.name)
</script>
<template>
<UserAvatar
v-bind:username="'userName'"
api="initials"
/>
</template>