forked from geolba/tethys.backend
15 lines
356 B
Vue
15 lines
356 B
Vue
|
<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>
|