@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.
16 lines (13 loc) • 597 B
text/typescript
import { ImageStoreState } from '../../initialState';
const activeGenerationTopicId = (s: ImageStoreState) => s.activeGenerationTopicId;
const generationTopics = (s: ImageStoreState) => s.generationTopics;
const getGenerationTopicById = (id: string) => (s: ImageStoreState) =>
s.generationTopics.find((topic) => topic.id === id);
const isLoadingGenerationTopic = (id: string) => (s: ImageStoreState) =>
s.loadingGenerationTopicIds.includes(id);
export const generationTopicSelectors = {
activeGenerationTopicId,
generationTopics,
getGenerationTopicById,
isLoadingGenerationTopic,
};