@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.
30 lines (27 loc) • 705 B
text/typescript
import { ChatTopic } from '@/types/topic';
export interface ChatTopicState {
// TODO: need to add the null to the type
activeTopicId?: string;
creatingTopic: boolean;
inSearchingMode?: boolean;
isSearchingTopic: boolean;
searchTopics: ChatTopic[];
topicLoadingIds: string[];
topicMaps: Record<string, ChatTopic[]>;
topicRenamingId?: string;
topicSearchKeywords: string;
/**
* whether topics have fetched
*/
topicsInit: boolean;
}
export const initialTopicState: ChatTopicState = {
activeTopicId: null as any,
creatingTopic: false,
isSearchingTopic: false,
searchTopics: [],
topicLoadingIds: [],
topicMaps: {},
topicSearchKeywords: '',
topicsInit: false,
};