<script setup>
import ItemDescriptor from './ItemDescriptor.vue';
import ItemSummary from './ItemSummary.vue';

const $props = defineProps({
    id: {
        type: Number,
        required: true,
    },
    dated: {
        type: String,
        default: null,
    },
    saleFk: {
        type: Number,
        default: null,
    },
    warehouseFk: {
        type: Number,
        default: null,
    },
});
</script>

<template>
    <QPopupProxy>
        <ItemDescriptor
            v-if="$props.id"
            :id="$props.id"
            :summary="ItemSummary"
            :dated="dated"
            :sale-fk="saleFk"
            :warehouse-fk="warehouseFk"
        />
    </QPopupProxy>
</template>
