FieldCustomerOptionIcon.vue 579 B

12345678910111213141516171819202122
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonUserAvatar from '#shared/components/CommonUserAvatar/CommonUserAvatar.vue'
  4. import type { AutoCompleteCustomerUserOption } from '#shared/components/Form/fields/FieldCustomer/types.ts'
  5. defineProps<{
  6. option: AutoCompleteCustomerUserOption
  7. }>()
  8. </script>
  9. <template>
  10. <CommonUserAvatar
  11. v-if="option.user"
  12. :entity="option.user"
  13. :class="{
  14. 'opacity-30': option.disabled,
  15. }"
  16. size="small"
  17. class="ltr:mr-4 rtl:ml-4"
  18. />
  19. </template>