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