<!-- Page de détails d'une adresse postale -->
<template>
  <main>
    <v-skeleton-loader
      v-if="fetchState.pending"
      type="text"
    />
    <FormOrganizationAddress :id="id" v-else></FormOrganizationAddress>
  </main>
</template>

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

export default defineComponent({
  name: 'EditOrganizationAddressEdit',
  setup () {
    const {getItemToEdit} = new UseDataUtils().invoke()
    const {id, fetchState} = getItemToEdit(OrganizationAddressPostal)
    return {
      id,
      fetchState
    }
  }
})
</script>
