ShortcutsEntry.vue 486 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div class="flex items-center py-1">
  3. <span class="flex flex-1 mr-4">
  4. {{ t(shortcut.label) }}
  5. </span>
  6. <span
  7. v-for="(key, index) in shortcut.keys"
  8. :key="`key-${String(index)}`"
  9. class="shortcut-key"
  10. >
  11. {{ key }}
  12. </span>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { useI18n } from "~/helpers/utils/composables"
  17. const t = useI18n()
  18. defineProps<{
  19. shortcut: {
  20. label: string
  21. keys: string[]
  22. }
  23. }>()
  24. </script>