import * as React from "react" import { cn } from "@/lib/utils" import { getShortcutKey } from "@shared/utils" export interface ShortcutKeyWrapperProps extends React.HTMLAttributes { ariaLabel: string } const ShortcutKeyWrapper = React.forwardRef< HTMLSpanElement, ShortcutKeyWrapperProps >(({ className, ariaLabel, children, ...props }, ref) => { return ( {children} ) }) ShortcutKeyWrapper.displayName = "ShortcutKeyWrapper" export interface ShortcutKeyProps extends React.HTMLAttributes { shortcut: string } const ShortcutKey = React.forwardRef( ({ className, shortcut, ...props }, ref) => { return ( {getShortcutKey(shortcut).symbol} ) }, ) ShortcutKey.displayName = "ShortcutKey" export const Shortcut = { Wrapper: ShortcutKeyWrapper, Key: ShortcutKey, }