<template>
  <component :is="comp" />
</template>
<script>
export default {
  computed: {
    comp() {
      if (this.$store.selectPreviewTemplate) {
        return this.$store.previewTemplates[
          this.$store.selectPreviewTemplate.value
        ];
      }
      return "div";
    },
  },
};
</script>