mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-14 21:35:25 +00:00
17 lines
No EOL
562 B
TypeScript
17 lines
No EOL
562 B
TypeScript
'use client';
|
|
|
|
import { useSyntaxGuide } from "./syntaxGuideProvider";
|
|
import { KeyboardShortcutHint } from "../../components/keyboardShortcutHint";
|
|
|
|
export const SyntaxReferenceGuideHint = () => {
|
|
const { isOpen, onOpenChanged } = useSyntaxGuide();
|
|
|
|
return (
|
|
<div
|
|
className="text-sm cursor-pointer"
|
|
onClick={() => onOpenChanged(!isOpen)}
|
|
>
|
|
<span className="dark:text-gray-300">Reference guide: </span><KeyboardShortcutHint shortcut="⌘" /> <KeyboardShortcutHint shortcut="/" />
|
|
</div>
|
|
)
|
|
} |