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.

464 B
Raw Blame
'use client';

import { memo } from 'react';

import { AutoSaveHint as SharedAutoSaveHint } from '@/features/EditorCanvas';
import { useChatStore } from '@/store/chat';
import { chatPortalSelectors } from '@/store/chat/selectors';

const AutoSaveHint = memo(() => {
  const documentId = useChatStore(chatPortalSelectors.portalDocumentId);

  if (!documentId) return null;

  return <SharedAutoSaveHint documentId={documentId} />;
});

export default AutoSaveHint;