<template>
  <template v-if="Object.keys(dialogStore.dialogs).length > 0">
    <template v-for="(dialog, i) in dialogStore.dialogs">
      <dialog-item :id="dialog.id" :dialogData="dialog.data" />
    </template>
  </template>
</template>
<script setup lang="ts">
  import DialogItem from './DialogItem.vue'
  import { useDialogStore } from './dialogStore'
  const dialogStore = useDialogStore()
</script>
