import { ButtonTooltip } from 'components/ui/ButtonTooltip' import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state' import { useAppStateSnapshot } from 'state/app-state' import { AiIconAnimation } from 'ui' import { KeyboardShortcut } from 'ui' export const AssistantButton = () => { const snap = useAiAssistantStateSnapshot() const { setEditorPanel } = useAppStateSnapshot() return ( { snap.toggleAssistant() setEditorPanel({ open: false }) }} tooltip={{ content: { text: (
AI Assistant
), }, }} >
) }