import { SqlEditor } from 'icons' import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state' import { useAppStateSnapshot } from 'state/app-state' import { ButtonTooltip } from 'components/ui/ButtonTooltip' import { KeyboardShortcut } from 'ui' export const InlineEditorButton = () => { const { closeAssistant } = useAiAssistantStateSnapshot() const { setEditorPanel, editorPanel } = useAppStateSnapshot() return ( { closeAssistant() setEditorPanel({ open: !editorPanel.open }) }} tooltip={{ content: { text: (
SQL Editor
), }, }} >
) }