<script setup lang="ts">
function onEvent(type: string) {
  if (type === 'cancel') {
    navigateTo('/doctor')
  } else if (type === 'draft') {
    // do something
  } else if (type === 'submit') {
    // do something
  }
}
const data = ref({
  name: '',
  specialization: '',
  hospital: '',
})
</script>

<template>
  <AppDoctorEntryForm v-model="data" @event="onEvent" />
</template>
