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.

488 B
Raw Blame
import { type MusicStore } from '../../store';

const blockedPrompt = (state: MusicStore) => state.blockedPrompt;
const isCreating = (state: MusicStore) => state.isCreating;
const isCreatingWithNewTopic = (state: MusicStore) => state.isCreatingWithNewTopic;
const isRetryingBatch = (batchId: string) => (state: MusicStore) =>
  state.retryingBatchIds.includes(batchId);

export const createMusicSelectors = {
  blockedPrompt,
  isCreating,
  isCreatingWithNewTopic,
  isRetryingBatch,
};