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

13 lines
353 B
Vue
Raw Permalink Normal View History

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