<script setup lang="ts">
//
import List from './list.vue'
import Entry from './entry.vue'

const props = defineProps<{
  encounter_id: number
}>()

const { crudQueryParams } = useQueryCRUD()
</script>

<template>
  <List v-if="crudQueryParams.mode === 'list'" :encounter_id="encounter_id" />
  <Entry v-else :encounter_id="encounter_id" />
  <div class="hidden">{{ crudQueryParams.mode }}</div>
</template>
