type Content = | { type: 'paragraph'; children: Array<{ type: 'text'; value: string; bold?: boolean }> } | { type: 'text'; value: string; bold?: boolean; }; const RichTextBlock = ({ block }: { block: Content }) => { if (block.type === 'text') { return block.bold ? ( {block.value} ) : ( {block.value} ); } return (
{block.children.map((child, index) => (