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.

444 B
Raw Blame
import { messageStateSelectors, useConversationStore } from '../../store';
import { useChatMarkdown } from '../useChatMarkdown';

export const useMarkdown = (id: string, disableStreaming = false, content?: string) => {
  const isGenerating = useConversationStore(
    messageStateSelectors.isAssistantGroupItemGenerating(id),
  );

  return useChatMarkdown({
    enableStream: !disableStreaming,
    content,
    id,
    isGenerating,
  });
};