FormFieldLink.vue 593 B

123456789101112131415161718192021222324
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import type { RouteLocationRaw } from 'vue-router'
  4. defineProps<{
  5. link: RouteLocationRaw
  6. }>()
  7. </script>
  8. <template>
  9. <div
  10. class="flex h-full items-center border-white/10 focus:outline-none ltr:border-l ltr:pl-1 rtl:border-r rtl:pr-1"
  11. >
  12. <CommonLink
  13. v-if="link"
  14. :link="link"
  15. class="flex h-10 w-12 items-center justify-center"
  16. open-in-new-tab
  17. >
  18. <CommonIcon name="mobile-external-link" size="small" />
  19. </CommonLink>
  20. </div>
  21. </template>