yufan.me/src/components/comment/Comment.astro
Yufan Sheng c37ce2b820
feat: change the commenter avatar link. ()
* feat: add new comment user merge service.

* feat: better hide the commenter email.
2024-11-15 14:53:53 +08:00

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} />)}