"use client"; import { memo } from "react"; import { ContextChip } from "./context-chip"; type SelectionComment = { id: string; selectedText: string; text: string; }; export const SelectionCommentItem = memo(function SelectionCommentItem({ kind, label, comments, onClick, onRemove, }: { kind: "plan-comment" | "agent-message-comment"; label: string; comments: SelectionComment[]; onClick?: () => void; onRemove?: () => void; }) { const preview = (
{comments.map((comment) => (
{comment.selectedText ? (
“{comment.selectedText}”
) : null}
{comment.text}
))}
); return ( ); });