<script lang="ts">
import KeyboardShortcutParser from '@src/common/js/KeyboardShortcutParser';

export default {
  methods: {
    /**
     * Parses command's keyboard shortcut into human-readable label
     */
    getKeyboardShortcutLabel(command): string {
      if (! command.shortcut) {
        return '';
      }
      return KeyboardShortcutParser.parseShortcut(command.shortcut);
    },
  }
};
</script>
