jbilcke-hf's picture
jbilcke-hf HF staff
we can now post comments
38d787b
raw
history blame
490 Bytes
"use client"
import { cn } from "@/lib/utils"
import { CommentInfo } from "@/types"
import { CommentCard } from "../comment-card"
export function CommentList({
comments = []
}: {
comments: CommentInfo[]
}) {
return (
<div className={cn(
`flex flex-col`,
`pt-6`,
`w-full space-y-4`
)}>
{comments.map(comment => (
<CommentCard
key={comment.id}
comment={comment}
replies={[]}
/>
))}
</div>
)
}