{thread.root.author} {thread.root.contents}
{thread.replies.map((each) => ({each.author} {each.contents}
))} {comments.canReply(thread.root.ref) && ( )}import { useEffect, useState } from 'react';
import { Viewer, DocumentGate } from '@embedpdf/react/runtime';
import type { OpenInput } from '@embedpdf/react/runtime';
import { Stage, stagePlugin } from '@embedpdf/react/stage';
import { RenderLayer, renderPlugin } from '@embedpdf/react/render';
import { SelectionLayer, selectionPlugin } from '@embedpdf/react/selection';
import { interactionPlugin } from '@embedpdf/react/interaction';
import {
AnnotationLayer,
AnnotationMenu,
annotationKey,
annotationPlugin,
useAnnotation,
useAnnotationState,
useCommentThread,
useComments,
} from '@embedpdf/react/annotation';
import { localEngine } from '@embedpdf/engine';
import './note-card.css';
const engine = localEngine();
const plugins = [
stagePlugin(),
renderPlugin(),
interactionPlugin(),
selectionPlugin(),
annotationPlugin(),
];
// [!doc-source proposal]
const proposal = async (): Promise
{thread.root.author} {thread.root.contents}
{each.author} {each.contents}
Click the note next to the title, or the highlighted sentence