wf4/app/components/RichText/RichText.vue
webfussel 3f2f0f984c FIX: Usage of RichText
Actually using my implemented functionality
2025-02-21 19:22:34 +01:00

20 lines
402 B
Vue

<template>
<template v-if="Array.isArray(elements)">
<General v-for="element in elements" :element="element" />
</template>
<template v-else>
<General :element="elements" />
</template>
</template>
<script setup lang="ts">
import type { RichText } from './Types'
import General from './General.vue'
type Props = {
elements : RichText | RichText[]
}
defineProps<Props>()
</script>