import { LOCAL_STORAGE_KEYS } from 'common' import { ButtonTooltip } from 'components/ui/ButtonTooltip' import { useLocalStorageQuery } from 'hooks/misc/useLocalStorage' import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state' import { AiIconAnimation, KeyboardShortcut } from 'ui' export const AssistantButton = () => { const snap = useAiAssistantStateSnapshot() const [isAIAssistantHotkeyEnabled] = useLocalStorageQuery( LOCAL_STORAGE_KEYS.HOTKEY_AI_ASSISTANT, true ) return ( { snap.toggleAssistant() }} tooltip={{ content: { text: (
AI Assistant {isAIAssistantHotkeyEnabled && }
), }, }} >
) }