'use client' import type * as React from 'react' import type { Node as ProseMirrorNode } from '@tiptap/pm/model' import type { NodeProps } from '@tiptap/static-renderer' import { Checkbox } from '@admin/components/ui/checkbox' // A task item in the editor card's server render (`ContentEditorStaticBody`): the same markup as the // live task node view (`task-item-node-extension.tsx`), with a read-only checkbox, so the item does // not shift when the editor takes over and React sees no uncontrolled `checked` input. export function ContentEditorStaticTaskItem({ node, children }: NodeProps) { const checked = node.attrs.checked === true return (
  • {children}
  • ) }