TicketOverviewsEmptyText.vue 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!-- Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script lang="ts" setup>
  3. interface Props {
  4. title: string
  5. text?: string
  6. icon?: string
  7. withIllustration?: boolean
  8. }
  9. defineProps<Props>()
  10. </script>
  11. <template>
  12. <div
  13. class="absolute top-1/2 w-full -translate-y-1/2 text-center ltr:left-1/2 ltr:-translate-x-1/2 rtl:right-1/2 rtl:translate-x-1/2"
  14. >
  15. <img
  16. v-if="withIllustration"
  17. class="mx-auto"
  18. src="./assets/confetti.svg"
  19. alt="confetti"
  20. />
  21. <CommonLabel
  22. tag="h2"
  23. size="xl"
  24. class="flex items-center justify-center gap-2 text-black dark:text-white"
  25. >
  26. <!-- prefix-icon prop can not be used without changing the size regarding the icon -->
  27. <CommonIcon v-if="icon" size="small" :name="icon" />
  28. <span>
  29. {{ title }}
  30. </span>
  31. </CommonLabel>
  32. <slot>
  33. <CommonLabel tag="p" class="block! py-5">
  34. {{ text }}
  35. </CommonLabel>
  36. </slot>
  37. </div>
  38. </template>