• Finds shortcut by unique identifier.

    Parameters

    • id: string

      The shortcut ID to find.

    Returns undefined | Shortcut

    The shortcut if found; undefined otherwise.

    export function getShortcutById(id: string): Shortcut | undefined {
    return SHORTCUTS.find((shortcut) => shortcut.id === id);
    }