10 lines
225 B
TypeScript
10 lines
225 B
TypeScript
import { mockComments } from "@/lib/mock"
|
|
|
|
export function listComments() {
|
|
return mockComments
|
|
}
|
|
|
|
export function listCommentsByPost(postId: string) {
|
|
return mockComments.filter((comment) => comment.postId === postId)
|
|
}
|