polarpress-pagebuilder/resources/js/components/Blocks/BlockPreviewer.vue
Helge-Mikael Nordgård e15d3ae146
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Transferred and translated the frontend code from L10 to L12
2025-05-05 19:01:27 +02:00

24 lines
371 B
Vue

<script setup>
import { defineProps } from 'vue';
// Import all block components explicitly
const { block } = defineProps({
block: {
type: Object,
required: true
}
});
const components = {
};
</script>
<template>
<component :is="components[block.componentName]" :block="block" />
</template>
<style scoped>
/* Optional styles */
</style>