import { MessageCircle, X } from "lucide-react"; import { COMPOSER_INLINE_CHIP_CLASS_NAME, COMPOSER_INLINE_CHIP_DISMISS_BUTTON_CLASS_NAME, COMPOSER_INLINE_CHIP_ICON_CLASS_NAME, COMPOSER_INLINE_CHIP_LABEL_CLASS_NAME, } from "../composerInlineChip"; import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip"; import type { ReviewCommentContext } from "~/reviewCommentContext"; import { cn } from "~/lib/utils"; interface ComposerPendingReviewCommentsProps { comments: ReadonlyArray; onRemove: (commentId: string) => void; className?: string; } export function ComposerPendingReviewComments({ comments, onRemove, className, }: ComposerPendingReviewCommentsProps) { if (comments.length === 0) return null; return (
{comments.map((comment) => { const label = `${comment.filePath} ${comment.rangeLabel}`; return ( {label} } /> {comment.text} ); })}
); }