<script setup>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useWorkspaceStore } from './stores/workspace'

const router = useRouter()
const workspaceStore = useWorkspaceStore()

onMounted(async () => {
  await workspaceStore.initWorkspace()
  if (!workspaceStore.path) {
    // No workspace selected, stay on welcome page
  }
})
</script>

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