<template>
  <h1 v-if="page" class="sr-only">{{ page.content.title }}</h1>
  <div class="with-sidebar">
    <Menu />
    <RouterView />
  </div>
</template>

<script setup>
import { useUserStore } from "./stores/user";
import { storeToRefs } from "pinia";
import Menu from "./components/Menu.vue";
import { usePageStore } from "./stores/page";

const { page } = storeToRefs(usePageStore());

const { user } = storeToRefs(useUserStore());
user.value = kirbyData.user;
</script>
