<script setup>
// This component reuses EmailCreateForm's logic via props.edit=true
import EmailCreateForm from './EmailCreateForm.vue';

const props = defineProps({
  show: { type: Boolean, default: false },
  person: { type: Object, required: true },
  types: { type: Array, default: () => [] },
  id: { type: Number, default: 0 },
});
</script>

<template>
  <EmailCreateForm :show="show" :person="person" :types="types" :edit="true" :id="id" @close="$emit('close')" />
</template>
