<script setup>

import { ref } from 'vue';
import { useAuth } from '@websanova/vue-auth/src/v3.js';
const auth = useAuth();

</script>

<template>
    <div class="config-panel hidden">
        <div class="config-panel-content">
            <span class="config-panel-label">Welcome </span>

            {{ auth.user().name + " " + auth.user().surname }}
            <button @click="auth.logout()" class="p-button p-button-danger p-button-outlined">Logout</button>
        </div>
    </div>
</template>