'use client'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import { AccordionItem, parseSections, SECTION_ICONS } from '@/components/AccordionItem'; export default function SavedInterpretation({ interpretation }: { interpretation: string }) { const sections = parseSections(interpretation); if (sections.length > 0) { return (
{sections.map((section, idx) => ( ))}
); } return (
{interpretation}
); }