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

<template>
  <FormRuntime
    v-model="state"
    v-model:config="formConfig"
    :configure="configure"
  />
</template>
