'use client' import dynamic from 'next/dynamic' import type { NoteBlock } from '@/lib/notes-api' import { blockPreview } from '../model/blocks' const Learning = dynamic(() => import('./NoteLearningContent'), { ssr: false }) const Markdown = dynamic(() => import('@/components/common/MarkdownRenderer'), { ssr: false }) export default function NoteSuggestionContent({ blocks, markdown, }: { blocks?: NoteBlock[] | null markdown: string }) { if (!blocks?.length) return return ( <> {blocks.map(block => block.type === 'learning' ? ( {}} /> ) : ( ) )} ) }