<script setup>
const { fetchUserProfile, isAuthenticated } = useAuth()

onMounted(() => {
  if (isAuthenticated.value) {
    fetchUserProfile()
  }
})
</script>

<template>
  <GlobalLoader />
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</template>
