SidebarShortcutHint.tsx 386 B

12345678910
  1. export function SidebarShortcutHint({ shortcut, label }: { shortcut: string; label: string }) {
  2. return (
  3. <div className="flex items-center gap-1.5 px-2 py-1 text-ui-xs text-foreground-subtle">
  4. <kbd className="shrink-0 rounded-sm bg-tooltip-tag px-1.5 py-0.5 font-mono text-ui-xs text-foreground">
  5. {shortcut}
  6. </kbd>
  7. <span>{label}</span>
  8. </div>
  9. );
  10. }