<script setup lang="ts">
import { ResumeInputData } from '@/types/resume';

const props = defineProps<{
    model: ResumeInputData
}>();

const emit = defineEmits(['data-changed']);

console.log('model value ', props.model);
</script>

<template>
    <input
        type="email"
        :value="props.model.value"
        @input="emit('data-changed', { ...props.model, value: $event.target.value })"
    />
</template>
