<template>
  <thing-picker :title="configDescription.label" :value="value" @input="updateValue" :filter-uid="configDescription.options.map((o) => o.value)" :multiple="configDescription.multiple" :required="configDescription.required" />
</template>

<script>
import ThingPicker from './thing-picker.vue'

export default {
  props: ['configDescription', 'value'],
  components: {
    ThingPicker
  },
  methods: {
    updateValue (value) {
      this.$emit('input', value)
    }
  }
}
</script>
