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

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

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

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

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