mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
17 lines
548 B
TypeScript
17 lines
548 B
TypeScript
|
|
'use client';
|
||
|
|
|
||
|
|
import { useSyntaxGuide } from "../syntaxGuideProvider";
|
||
|
|
import { KeyboardShortcutHint } from "./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>
|
||
|
|
)
|
||
|
|
}
|