import html from "html";
import { useAppStore } from "../store/index.js";
import { defineAsyncComponent, computed } from "vue";
export default {
components: {
LayoutHeader: defineAsyncComponent(() => import("./header.js")),
LayoutMenu: defineAsyncComponent(() => import("./menu.js")),
LayoutTabs: defineAsyncComponent(() => import("./tabs.js")),
LayoutFooter: defineAsyncComponent(() => import("./footer.js")),
},
template: html`
`,
setup() {
const appStore = useAppStore();
const isRefreshing = computed(() => appStore.isRefreshing);
const path = computed(() => useRoute().matched[0].path);
const items = computed(() => useRoute().matched[0].children);
return {
appStore,
isRefreshing,
path,
items,
};
},
};