<script setup>
import Home from "./views/Home.vue";
import { useApiStore } from "./stores/api";

const templates = {
  home: {
    component: Home,
    query: {
      title: true,
    },
  },
};

const api = useApiStore();
const pageTemplate = kirbyData.pageTemplate;
const pageUri = kirbyData.pageUri;

api.fetchData();
</script>

<template>
  <component :is="templates[pageTemplate].component" />
</template>
