<script lang="ts">
    import { modules } from "../../store"
    import Formular from "./form/Formular.svelte"

    export let col: { contentType: "moduleImport"; moduleImport: string }
    export let pageId: string

    let module = $modules[col.moduleImport] || {}
    $: module = $modules[col.moduleImport] || {}
</script>

{#if module.type == "form"}
    <Formular {col} {pageId} form="{module}" />
{/if}
