'use client' import * as React from 'react' import { renderContentEditorStatic } from '@admin/utils/editor/render-content-editor-static' import { ContentEditorStaticTaskItem } from './content-editor-static-task-item' // The desktop editor card's body before Tiptap has built the editor (server render and the moments // before hydration): the value rendered by `renderContentEditorStatic` inside the same wrapper and // prose classes the live editor uses, so the swap to the ProseMirror view does not move anything. export function ContentEditorStaticBody({ value }: { value: string }) { const content = React.useMemo( () => renderContentEditorStatic(value, { taskItem: ContentEditorStaticTaskItem }), [value] ) return (