<script setup lang="ts">
import { useConfigStore } from "@/stores/config";
import { onMounted } from "vue";
import { useRoute } from "vue-router";
import MarkdownFile from "../components/MarkdownFile.vue";

const store = useConfigStore();
const route = useRoute();

onMounted(() => {
  store.loadJdr(`${route.params.jdr}`);
});
</script>

<template>
  <MarkdownFile :path="`pages/jdr/${$route.params.jdr}`"></MarkdownFile>
</template>
