mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-06 02:47:54 +00:00
22 lines
430 B
TypeScript
22 lines
430 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
|
|
import {
|
|
SCOPE_ACTIVE_COMMENT,
|
|
useCommentReplies,
|
|
} from '@udecode/plate-comments/react';
|
|
|
|
import { CommentItem } from './comment-item';
|
|
|
|
export function CommentReplyItems() {
|
|
const commentReplies = useCommentReplies(SCOPE_ACTIVE_COMMENT);
|
|
|
|
return (
|
|
<>
|
|
{Object.keys(commentReplies).map((id) => (
|
|
<CommentItem key={id} commentId={id} />
|
|
))}
|
|
</>
|
|
);
|
|
}
|