UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

9 lines (6 loc) 280 B
import { useChatStore } from '@/store/chat'; import { portalThreadSelectors } from '@/store/chat/selectors'; export const useEnable = () => useChatStore(portalThreadSelectors.showThread); export const onClose = () => { useChatStore.setState({ portalThreadId: undefined }); };