{children}
, ul: ({ children }) =>- {children}
- {children}
{children}
),
}}
>
{chunk.text}
'use client'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import { JURISDICTION_COLORS, JURISDICTION_LABELS } from '@/lib/constants'; import type { SectionContent } from '@/lib/types'; interface Props { content: SectionContent | null; isLoading: boolean; onClose: () => void; onNodeNavigate: (sectionId: string, jurisdiction: string) => void; onChatAboutSection: (sectionId: string, title: string, docName: string, jurisdiction: string) => void; } export function SectionDrawer({ content, isLoading, onClose, onNodeNavigate, onChatAboutSection, }: Props) { const isOpen = isLoading || content !== null; const color = content ? JURISDICTION_COLORS[content.jurisdiction] ?? '#888' : '#888'; return (
Sec {content.section_id} / {content.title}
{content.doc_name}
{children}
, ul: ({ children }) =>
{children}
),
}}
>
{chunk.text}