<template>
  <NuxtPage />
</template>

<script setup>
useHead({
  script: [
    {
      src: "https://umami.erudi.fr/script.js",
      defer: true,
      "data-website-id": "727afcbf-3cb1-4874-8228-88d147e19ad8",
    },
  ],
})
// @todo : load datas as plugin/middleware (cant load pinia in plugin/middleware) ?
onMounted(async () => {
  const dataStore = await useDataStore()
  await dataStore.loadData()
})
</script>
