<script setup lang="ts">
const { locale } = useI18n();

const app = useAppStore();
const pageTitle = computed(() => {
  if (!app.booted) return "Pihkaal - Developer";
  return `${$t(`screens.${app.screen}`)} | Pihkaal - Developer`;
});

useHead({
  title: pageTitle,
  htmlAttrs: { lang: locale },
});
</script>

<template>
  <UApp>
    <NuxtPage />
  </UApp>
</template>
