feat : comment feature
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { getCommentViewer, listComments } from "@/lib/comments/repository";
|
||||
import { CommentBoard } from "./comment-board";
|
||||
|
||||
export async function CommentBoardContent({ target }: { target: string }) {
|
||||
const initial = await listComments({ target, sort: "top", viewer: await getCommentViewer() });
|
||||
return <CommentBoard target={target} initial={initial} />;
|
||||
}
|
||||
Reference in New Issue
Block a user