Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

727 B
Raw Blame
import { type VideoStoreState } from '../../initialState';

const activeGenerationTopicId = (s: VideoStoreState) => s.activeGenerationTopicId;
const generationTopics = (s: VideoStoreState) => s.generationTopics;
const getGenerationTopicById = (id: string) => (s: VideoStoreState) =>
  s.generationTopics.find((topic) => topic.id === id);
const isLoadingGenerationTopic = (id: string) => (s: VideoStoreState) =>
  s.loadingGenerationTopicIds.includes(id);
const newGenerationTopicVisibility = (s: VideoStoreState) => s.newGenerationTopicVisibility;

export const generationTopicSelectors = {
  activeGenerationTopicId,
  generationTopics,
  getGenerationTopicById,
  isLoadingGenerationTopic,
  newGenerationTopicVisibility,
};