import { BROWSER_OS_PLATFORM } from '@/react/constants'; import { Tooltip } from '@@/Tip/Tooltip'; const otherEditorConfig = { tooltip: ( <>
Ctrl+F - Start searching
Ctrl+G - Find next
Ctrl+Shift+G - Find previous
Ctrl+Shift+F - Replace
Ctrl+Shift+R - Replace all
Alt+G - Jump to line
Persistent search:
Enter - Find next
Shift+Enter - Find previous
), searchCmdLabel: 'Ctrl+F for search', } as const; export const editorConfig = { mac: { tooltip: ( <>
Cmd+F - Start searching
Cmd+G - Find next
Cmd+Shift+G - Find previous
Cmd+Option+F - Replace
Cmd+Option+R - Replace all
Option+G - Jump to line
Persistent search:
Enter - Find next
Shift+Enter - Find previous
), searchCmdLabel: 'Cmd+F for search', }, lin: otherEditorConfig, win: otherEditorConfig, } as const; export function ShortcutsTooltip() { return (
{editorConfig[BROWSER_OS_PLATFORM].searchCmdLabel}
); }