* feat: add new comment user merge service. * feat: better hide the commenter email.
18 lines
489 B
Plaintext
18 lines
489 B
Plaintext
---
|
|
/**
|
|
* This module is a reuse component which can be used in ajax loading.
|
|
*/
|
|
import CommentItem from '@/components/comment/CommentItem.astro';
|
|
import { parseComments } from '@/components/comment/artalk';
|
|
import type { Comments } from '@/components/comment/types';
|
|
|
|
interface Props {
|
|
comments: Comments;
|
|
}
|
|
|
|
const { comments } = Astro.props;
|
|
const parsedComments = await parseComments(comments.comments);
|
|
---
|
|
|
|
{parsedComments.map((item) => <CommentItem comment={item} depth={1} />)}
|