<script setup>
// import cardiologyFormData from '@/views/pages/questionere/cardiology-form';
import cardiologyCategory from '@/views/pages/questionere/form-category';
import formview from '@/views/pages/questionere/form.vue';
import { useRoute, useRouter } from 'vue-router';
const router = useRouter()
const route = useRoute()
const categoryName = route.params.categoryLink;
const currentForm = cardiologyCategory[categoryName.replace(/[\s_]/g, '')]
</script>
<template>
  <VContainer>
    <VRow>
      <VCol cols="12" md="2"></VCol>
      <VCol cols="12" md="8">
        <VCard class="px-2 py-2">
          <formview :questionCategory="categoryName" :steps="currentForm.steps" :schema="currentForm.schema"
            :newForm="false">
          </formview>
        </VCard>
      </VCol>
    </VRow>
  </VContainer>

</template>
