<script setup>
import { useAppStore } from 'stores/app';
import { useUserStore } from 'stores/user';
import { onBeforeMount } from 'vue';
import { useRouter } from 'vue-router';

const appStore = useAppStore();
const userStore = useUserStore();
const router = useRouter();

onBeforeMount(async () => {
    await userStore.init(router);
    await appStore.init();
});
</script>

<template>
    <router-view />
</template>
