SystemMessage.vue 654 B

123456789101112131415161718192021222324252627
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import ArticleReactionBadge from './ArticleReactionBadge.vue'
  4. interface Props {
  5. subject: string
  6. to?: Maybe<string>
  7. reaction?: Maybe<string>
  8. }
  9. defineProps<Props>()
  10. </script>
  11. <template>
  12. <div
  13. class="relative rounded-lg border border-current p-3 text-center text-neutral-500"
  14. >
  15. <CommonLabel>&quot;{{ subject }}&quot;</CommonLabel>
  16. <template v-if="to">
  17. -&gt;
  18. <CommonLabel>&quot;{{ to }}&quot;</CommonLabel>
  19. </template>
  20. <ArticleReactionBadge position="system" :reaction="reaction" />
  21. </div>
  22. </template>