TicketOverviewsEmptyText.vue 851 B

123456789101112131415161718192021222324252627282930313233
  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. }
  8. defineProps<Props>()
  9. </script>
  10. <template>
  11. <div
  12. 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"
  13. >
  14. <CommonLabel
  15. tag="h2"
  16. size="xl"
  17. class="flex items-center justify-center gap-2 text-black dark:text-white"
  18. >
  19. <!-- prefix-icon prop can not be used without changing the size regarding the icon -->
  20. <CommonIcon v-if="icon" size="small" :name="icon" />
  21. <span>
  22. {{ title }}
  23. </span>
  24. </CommonLabel>
  25. <slot>
  26. <CommonLabel tag="p" class="block py-5">
  27. {{ text }}
  28. </CommonLabel>
  29. </slot>
  30. </div>
  31. </template>