<!-- Page de détails d'un temps d'enseignement -->
<template>
  <main>
    <FormParametersSubdomain :id="id" v-if="!fetchState.pending"></FormParametersSubdomain>
  </main>
</template>

<script lang="ts">
import {defineComponent, useContext} from '@nuxtjs/composition-api'
import {useDataUtils} from "~/composables/data/useDataUtils";
import {EducationTiming} from "~/models/Education/EducationTiming";

export default defineComponent({
  name: 'EditFormParametersEducationTiming',
  setup () {
    const {$dataProvider, route} = useContext()
    const {getItemToEdit} = useDataUtils($dataProvider)
    const id = parseInt(route.value.params.id)
    const {fetchState} = getItemToEdit(id, EducationTiming)
    return {
      id,
      fetchState
    }
  }
})
</script>
