<script setup>
import VnSelect from './VnSelect.vue';

defineProps({
    selectProps: { type: Object, required: true },
    promise: { type: Function, default: () => {} },
});
</script>
<template>
    <QBtnDropdown v-bind="$attrs" color="primary">
        <VnSelect
            v-bind="selectProps"
            hide-selected
            hide-dropdown-icon
            focus-on-mount
            @update:model-value="promise"
        />
    </QBtnDropdown>
</template>
