8 lines
361 B
TypeScript
8 lines
361 B
TypeScript
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} />;
|
|
}
|