import type { Comment } from "../../models"

type CommentCardProps = {
  comment: Comment
}

export default function CommentCard({ comment }: CommentCardProps) {
  return (
    <div className="border rounded-lg p-3 text-sm">
      <p className="font-medium mb-1">{comment.deal.title}</p>
      <p>{comment.text}</p>
      <p className="text-xs text-muted-foreground mt-1">
        {new Date(comment.createdAt).toLocaleString("tr-TR")}
      </p>
    </div>
  )
}
