jbilcke-hf's picture
jbilcke-hf HF staff
work in progress on the comment system
e4d3d8a
raw
history blame
478 Bytes
"use client"
import { cn } from "@/lib/utils"
import { VideoComment } from "@/types"
import { CommentCard } from "../comment-card"
export function CommentList({
comments = []
}: {
comments: VideoComment[]
}) {
return (
<div className={cn(
`flex flex-col`,
`w-full space-y-4`
)}>
{comments.map(comment => (
<CommentCard
key={comment.id}
comment={comment}
replies={[]}
/>
))}
</div>
)
}