<script setup>
import { computed } from "vue";
import FormConfigComponent from "../../../../form/config.vue";
defineOptions({ name: "ShwfedBlockFormConfig" });
const block = defineModel({ type: null, ...{ required: true } });
defineProps({
  configure: { type: Function, required: false }
});
const formConfig = computed({
  get: () => block.value.form,
  set: (next) => {
    block.value = { ...block.value, form: next };
  }
});
</script>

<template>
  <FormConfigComponent
    v-model="formConfig"
    :configure="configure"
  />
</template>
