<!-- Page de détails d'un point de contact (Edit mode) -->

<template>
  <main>
    <v-skeleton-loader
      v-if="fetchState.pending"
      type="text"
    />
    <FormOrganizationContactPoint :id="id" v-else></FormOrganizationContactPoint>
  </main>
</template>

<script lang="ts">
import { defineComponent } from '@nuxtjs/composition-api'
import { ContactPoint } from '~/models/Core/ContactPoint'
import {UseDataUtils} from "~/composables/data/useDataUtils";

export default defineComponent({
  name: 'EditContactPoint',
  setup () {
    const {getItemToEdit} = new UseDataUtils().invoke()
    const {id, fetchState} = getItemToEdit(ContactPoint)

    return {
      id,
      fetchState
    }
  }
})
</script>
<style>
</style>
