@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
12 lines (8 loc) • 392 B
text/typescript
import { DesktopHotkeyConfig } from '@lobechat/types';
import { DESKTOP_HOTKEYS_REGISTRATION } from './hotkeys';
export const DESKTOP_USER_ID = 'DEFAULT_DESKTOP_USER';
export const DEFAULT_DESKTOP_HOTKEY_CONFIG: DesktopHotkeyConfig =
DESKTOP_HOTKEYS_REGISTRATION.reduce((acc: DesktopHotkeyConfig, item) => {
acc[item.id] = item.keys;
return acc;
}, {} as DesktopHotkeyConfig);