'use client'; import { memo } from 'react'; import { IconFileText, IconListCheck } from '@tabler/icons-react'; import type { ActiveDocument } from '@/lib/state/slices/ui/types'; type DocumentReferenceIndicatorProps = { activeDocument: ActiveDocument; }; export const DocumentReferenceIndicator = memo(function DocumentReferenceIndicator({ activeDocument, }: DocumentReferenceIndicatorProps) { const isPlan = activeDocument.type === 'plan'; const label = isPlan ? 'Plan will be included in the prompt' : `${activeDocument.name} will be included in the prompt`; return (
{isPlan ? ( ) : ( )} {label}
); });