File size: 501 Bytes
e4d3d8a
 
f42b4a1
1185ec1
e4d3d8a
 
 
 
 
38d787b
e4d3d8a
 
 
 
 
38d787b
e4d3d8a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"use client"

import { cn } from "@/lib/utils/cn"
import { CommentInfo } from "@/types/general"
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>
  )
}