<script setup lang="ts">
const { t } = useI18n()
const { user } = useAuth()
</script>

<template>
  <NuxtLayout
    :page-title="t('dashboard.home')"
    name="dashboard"
    type="dashboard"
  >
    <UPageBody>
      <PageMainCard
        :title="t('dashboard.welcome')"
        :description="t('dashboard.welcomeDescription')"
        :icon="useSolarIcon('home')"
        :show-refresh-button="false"
      >
        {{ t('dashboard.welcomeMessage', { name: user?.name }) }}
      </PageMainCard>
    </UPageBody>
  </NuxtLayout>
</template>
