<script setup lang="ts">
import { useData } from "vitepress";
import VPFooter from "vitepress/dist/client/theme-default/components/VPFooter.vue";
import ContentDispatch from "./layout/ContentDispatch.vue";
import NotFound from "./NotFound.vue";
import Nav from "./components/Nav.vue";

const { page, frontmatter } = useData();
</script>

<template>
  <div v-if="frontmatter.layout !== false" class="Layout">
    <Nav />

    <NotFound v-if="page.isNotFound" />
    <ContentDispatch v-else />

    <VPFooter />
  </div>
</template>

<style scoped></style>
